WordPress Tips and Tuts

Home / WordPress Tips

Enforcing a custom post type on the loop

In regular "query_posts" call includes default post type "post" only, but when you create a custom post type, you...

How to add custom header, footer or sidebar on different categories easily

To call a particular header, you will need to open your index.php and replace your normal header code with this one: if(is_category('Blogging'))...

Set an expiration date for your WordPress posts

This hack comes becomes very useful when you are running a contest because you might be posting information such as clues or hints...

How to order categories by most recently updated

Add this code for displaying a category list based on which categories have been most recently updated. $cat_array = array();  ...

How to reset options back to default with update_option

Adding this snippet to the functions.php of your wordpress theme will check if an option was updated by a user. If so, it will save...

How to redirect back to referring page after login

Adding this snippet to the functions.php of your wordpress theme will redirect visitors to the page they were viewing after logging...

How to add bookmarks to admin bar using get_bookmarks

Adding this category bookmarks snippet to the functions.php of your wordpress theme will display a specified category of links / bookmarks...

How to remove title attribute from wp_list_categories

Adding this snippet to the functions.php of your wordpress theme will remove the title=”" attribute from the anchor tag when...

How to Display Relative Dates in WordPress

Have you ever seen this in blog posts and comments and wondered how did this blogger manage to do this? Actually it is pretty easy....

Customize Default Text and Title Attributes

While I’ve already touched on the customization of a few text elements of the default WordPress theme, there are other little text...

Change the Default Display of the Title Bar Content

The header.php file in WordPress’s default theme has a title bar that is coded like this: <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>  ...

How to use a Custom Page as a Home Page in WordPress

This is one of the most wanted hacks that users want to know how to accomplish. First you need to learn how to create a custom page....
Get Access To All Items at WordPress Eden for as Small as $55  Signup Now