Register New Post Statuses In WordPress

WordPress posts allow you to have some form of workflow when editing your posts. This is done by assigning a post status for each stage of the WordPress posts. By default the WordPress will take up th...

Change WordPress Email Content Types To HTML

All emails in WordPress are sent using the function wp_mail, the default content type for these email are in text/plain, which does not allow HTML to be placed in your emails. If you want to create cu...

Using AJAX In WordPress

In the following tutorial we are going to learn how you can use AJAX in WordPress to run your own functions. The way this works in WordPress is by allowing you to attach your own actions that you can...

Add Custom User Fields To User Profile Page

In a previous article I explained how you can modify the contact information on the WordPress User profile page, but what if you want to know more custom information from the user that requires more t...

Modify User Contact Fields In WordPress

With WordPress each user has their own profile records, within these profile there are multiple feeds that can be populated by the user to give you more information about them allowing you customise t...

Add Scripts To Shortcode Only When Used

Since version 2.5 WordPress introduced a new way of developers to provide dynamic content for the content author of the website with the use of Shortcodes. What Is A Shortcode? A shortcode allows the...

Get A List Of Registered Actions In WordPress

WordPress actions and filters is an event driven architecture that allow you to run specific code at certain times in your application. To do this WordPress uses two functions the add_action() to add...

Change Language Locale From WordPress Plugin

WordPress has the ability to be fully translated, this can be done in both themes and plugins. Translation Files To get WordPress to translate all of the text it uses the GNU gettext system, which wra...

Flush Permalinks On Custom Post Type

WordPress has the ability to have different post types, the main post type you will use in WordPress is the post type called Post. But there are other defaults such as Pages and Attachments. All the p...

Debugging In WordPress

Debugging your website is very important for any project, you will need to be able to debug your site in all the difference environments from local to live. But depending on the environment you will w...

How To Use WordPress Thickbox To Create A Gallery

WordPress comes with an inbuilt Javascript library which allows you to easily show pop-up dialog boxes on your WordPress site. This Javascript library is called Thickbox, which is a lightweight librar...

Display Content For Registered Only Users In WordPress

The registered users of your website are the most valuable visitors you can get on your website, these people are loyal visitors and you should reward them for that. One of the best ways of rewarding...

WordPress Menu Item Icons

In WordPress 3.8 the core had a change to all icons, they now use Dashicons which are fonts that mean you can display an icon by simply adding a CSS class. This can change a few things in the admin ar...

Set Default Visibility To Password Protected

In a recent project I had to make a certain post type to be password protected by default. Making posts password protected is default functionality that is built into WordPress core. To change the pos...

Create Your Own Pagination Links

When you are developing themes in WordPress you will first see that the query returns 10 posts at a time, this is because there is an in-built pagination that will tell WordPress what chuck of posts t...