fbpx

Tips, tricks, and other valuable WordPress knowledge to save you time and make you money!

Blog

$wpdb->get_row() Only Returns a Single Row

If you are trying to get an array of records that match a select statement using wpdb->get_row(), I’m afraid you are going to be disappointed. $wpdb->get_row() only returns a single row when you are using it to retrieve records from a WordPress database. Return Multiple Rows with $wpdb->get_results() However, if you would like to retrieve…

Change Where Mac Saves Screenshots

My Mac was annoyingly slow for a couple weeks and I couldn’t figure out why. I did a little research and found out that having items in your Desktop folder significantly slows down your computer…and I had over 2,000 items in there. None of the items in there were useful, they primarily consisted of client…

Backup Heroku Config Vars

I wrote a simple website scraping script to get a backup of a Heroku app’s Config Variables. Step 1: Load jQuery into the Chrome Console Check out our post on loading jQuery in the Chrome Console at https://blog.wplauncher.com/run-jquery-in-chrome-console/ Step 2: Pull out the Config Keys and Config Values associated with the Heroku Config Vars Now…

Import Woocommerce Products into a Demo WordPress site

Here at wplauncher we create a BUNCH of live site previews using WordPress theme demo content. When setting up these WordPress theme demos, we often find ourselves importing sample Woocommerce products. This allows our customers to see how they can set up their own shop with one of the themes in our marketplace. In the…

Did not find expected ‘-‘ indicator while parsing a block collection

I ran into this pesky error the other day while working on an ansible script and when I tried debugging the file (using yamllint.com) it pointed me to a completely different part of the .yml file (i.e. at line 2 column 1). But, the error actually existed much further down in the .yml file. Here’s…

Can’t Install MariaDB Dependency Problems

I kept running into errors when I ran the following command: Here are some details of the error I was getting when trying to install the mariadb-server package to my ubuntu server. As you can see, I was receiving a message that there was a dependency error when trying to install mariadb. I tried running…

Fix an Invalid WordPress RSS Feed

An invalid WordPress RSS Feed could be caused by a number of issues. I’m going to point you to several troubleshooting options and the one in particular that worked for me. The thing to remember is that the issue is with the RSS feed, so you want to target files/functions within plugins and themes that…

Jobify RSS Job Feed By Job Category and Job Type

I had a really difficult time figuring out the link to the Jobify RSS Feed that I needed to use to generate a Job Feed for my client’s WordPress site that runs the Jobify theme. The default WordPress RSS feed for custom post types worked to show all of the Jobify jobs on my client’s WordPress site but the…

Prevent Translating Text with Google Translate Widget

I have the Google Translate widget on a client website and was looking for a way to prevent the translation from working on certain text on a page. In order to do this, I simply had to add the notranslate class to any element on the page that I don’t want to be translated by…

You do not have EventON main plugin, which is REQUIRED.

I recently came across a frustrating error whilst adding the Event On events calendar plugin and the Event On Weekly View add on to a client’s WordPress site. We purchased both the main Event On plugin and the Event On Weekly View add on. We were able to activate the main Event On plugin but…

Want to use our API?