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 area of your application, for example when adding menus to the admin area you might need to change the icon to use a CSS class. If you have created any

Read more...

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 post to be password protected you do this in the publish settings on the edit post screen. There is a visibility setting where you can click on the edit button and the a dropdown will appear

Read more...

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 to display. If you are on page one then WordPress will display the 10 latest posts, if you are on page 2 then WordPress will show the 11 - 20 latest posts. There are

Read more...

Register Hidden Fields On Ninja Forms

When you are building a website, one of the most important areas of your site are forms, allowing you to capture data about your audience it can help you know what they want from you. There is no in built way in WordPress to create forms for your site, but there are a few really good plugins that allow you to do this. The one I've been using recently is

Read more...

Uninstall Hook For WordPress Plugin

When a user deletes your WordPress plugin it might be necessary that you do some processing for cleaning up the WordPress site. This is because a WordPress plugin can be used to create new data such as post types, options meta, post meta, custom tables etc. On the deleting event you may need to perform tasks such as removing this custom data the plugin has created. There are a couple

Read more...

Add Custom User Profile Fields In WordPress

When you are working on projects that need a lot of user management then you can get to the point where you need to add additional information to the users of your website. This is similar to creating new post meta data where you are able to create new bits of data and attach them to your posts, the users can work in exactly the same way. In the WordPress

Read more...

How To Rewrite URLs In WordPress

In this tutorial we are going to look at how you can use the built in WordPress rewriting API to create your own unique links for your website. WordPress will already use this for it's own functionality when you select a new permalink structure. What Is Rewriting? URL rewriting is when you change what content is displayed by the server, normally when you type in a URL the web server

Read more...

Display Post Meta Box On Specific Page Templates

In WordPress you have the ability to create different post types to hold different content, along with the create different post types you can also add new content fields attached to the posts themselves. This will allow you to create a field to enter data linked to the post which can be very useful when you are creating a way of displaying products, you can enter the description of the

Read more...

Change Default WordPress Emails

One of the best things about WordPress development is that not only can you use it as a CMS but as an application framework, it comes with a huge selection of utility functions that make it easy to handle form helpers, validation, file structures, email encoding and more. With WordPress actions and filters it becomes a very extendible framework to work with, another way to extend WordPress is with pluggable

Read more...

Add Upload Media To Library On Widgets

The WordPress media library is one of my favourite features in using WordPress over other CMS's, when you upload a new image into WordPress it will convert it to a number of a different sizes. These sizes can be defined in the settings -> media page, it will list three different image types where you can define new sizes for these image types. These means that every image you upload

Read more...

1 2 3 4 5 6 7 8 9 11