Handling WordPress User Roles

Wordpress comes with an inbuilt user manager to allow you to have full flexibility on the users of your Wordpress site. The security system it uses has users, roles and capabilities. A user can have m...

Using The Wp_Editor() Function On Theme Options

In previous tutorial you would of learnt how you can create a themes options page for your Wordpress theme, I have also wrote tutorials on how you can create a colour picker and a date picker in your...

Get The Current Post Type In Wordpress

I recently had to make a theme that used similar code on different custom post types. For this I want to do something different depending on the post type. To get the post type for the current post Wo...

How To Change The Language Of Your Wordpress Site

When you install Wordpress the default language is set to be US English. But this doesn't mean it has to be this language, you can change the language used on your Wordpress site to anything you want....

Override WordPress Site URL With wp-config.php

Wordpress is a CMS, which means that most of the data is and should be stored on the database. Two of the most important data that is stored in the database is the Home URL and the site URL. Options D...

Remove Width And Height Attributes From Images

Whenever you upload an image using the Wordpress media library and add this image to your post, Wordpress will automatically add the image Width and Height attribute in the image element. This is fine...

Move Wp-Content Folder To Different Location

Ever since Wordpress version 2.6 you can actually move your wp-content directory to a different location. The wp-content directory will store all your theme files, plugin files and images. Why Move Th...

Enable Additional Buttons On Visual Editor

The default text editor in Wordpress is TinyMce, with this you get lots of additional features. It allows your content authors to change anything they want with the content they are creating. There ar...

Add Date Picker To Wordpress Admin

In a previous article you would of learnt how to add default third party applications on your Wordpress site. Here is a list of all the default scripts you can load from Wordpress. One of the useful s...

Add Colour Picker To Wordpress Admin

In a previous tutorial you would of learnt how you can create your own theme options page using the Settings API. You might of also seen the tutorial about default Wordpress scripts which come with th...

Increase WordPress Memory Limit

A common error you can come across in Wordpress is a PHP memory limit error. This happens when Wordpress doesn't have enough memory to achieve what you want. It can be caused by poorly written plugins...

Redirect To Post If Search Results Return One Post

Wordpress has a built in search functionality which allows your visitor to easily search for posts on the blog. It can search for keywords in the post title and in the post content. When a search is p...

Get Current Page Template

Sometimes in Wordpress development you will need to display certain theme files, using the rewrite engine. For example using custom post types will use a file name single-{posttype}.php, but if you ar...

Create A Random Post Custom Page

In a previous tutorial you would of learnt how you can create custom page templates to add additional functionality to your theme. Some of the example pages mentioned were: Contact Us page, with vali...

Custom CSS On Single Posts

In a previous tutorial you would of learnt how to attach extra data to your single posts by creating custom post meta boxes. Create WordPress Post Custom Meta Boxes One way you can use this tutorial i...