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...

Display A WordPress Search Form

Wordpress has an built in search facility which will allow you to search for keywords within your posts search in either the post title or the post content. In order for Wordpress to perform a search...

Set Minimum Word Count On Posts

Since Google Penguin has been released there is more of need to create pages which are full of content. What this means for blogs is that no longer can you post something with only a couple of words a...