fbpx

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

Blog

Add Custom Database Table to a WordPress Plugin

Adding a custom database table to a WordPress plugin is a simple 2 step process. If you are using the WordPress Plugin Boilerplate, adding a custom database table involves adding the following code to the activate function within the class-plugin-name-activator.php. This code includes utilizing the wpdb global variable and the dbDelta function that allows a…

Add a Media Uploader Button to a Custom Metabox

There are 4 steps to follow to add a media uploader button to a custom metabox in WordPress. The quick overview is that you need to add a javascript function to the admin part of your WordPress plugin, add a button to your metabox (that includes the correct references from the javascript function), make sure…

Add Plugin to WordPress Plugin Directory

After having added three plugins to the WordPress plugin directory, I still have to look through my own documentation each time I submit a plugin. So, why not publish it here and share it with you fine people?! I tried to simplify the process as much as possible and put together the 5 steps that…

Update Plugin in WordPress Plugin Directory

Now that you have added your plugin to the WordPress directory, there are many circumstances that warrant updating your plugins in the WordPress Plugin Directory. For example, you will likely need to make updates to your plugin as WordPress updates core versions, whenever you add additional functionality, whenever you update tested up to versions, whenever…

Get Current Page Slug WordPress

There are several ways to get the current page’s or post’s slug in WordPress. Most simply, a post’s or page’s slug can be retrieved by accessing the global post object’s post_name property. The first method shown below accesses that post_name property within the $post variable while the second option below uses the get_post_field method. Both…

Creating WordPress RSS Feeds for Custom Post Types

In addition to creating WordPress RSS feeds for categories and tags, RSS feeds for search results, RSS feeds for comments, and RSS feeds for authors, you can also create RSS feeds for custom post types. This is super simple. In order to do this, simply use the URL structure below: You need to replace custom_post_type…

Creating WordPress RSS Feeds for Search Results

In order to create a WordPress RSS feed for search results, you need to simply use the URL format shown below: This enables you to get all search results related to a certain search term. For example, some of our users may be particularly interested in a gutenberg related post but at the moment we…

Create Automated Email Newsletters with MailChimp and WordPress’ RSS Feed

We wanted to create an automated email newsletter for our WPLauncher blog readers. We wanted this automated email newsletter to send emails to our subscribers on a weekly basis with all of the newly added post in a certain category. We put together this post to show you the 6 steps involved in the process…

Creating WordPress RSS Feeds for Comments

To find or create a WordPress RSS feed of all of a site’s comments or all of a post’s comments, you simply have to use RSS Feed URL structure shown below: All Site Comments: But, if you only want comments associated with a certain WordPress post, you would use the URL structure below. All Post…

Want to use our API?