Archive
WordPress Coding Techniques : Style Posts Individually
The problem. Your blog has a lot of posts, but the posts aren’t all of the same type. To give special styling to one or more of your posts, you can take advantage of both the post_class() function and the post ID. The solution. To apply this trick, just open your single.php file, find the [...]
Restore Your WordPress Database
The problem. Let’s say, for some reason, such as a hacking or upgrade problem, you have lost your blog data or it has become corrupted. If you have a backup (and I hope you do!) you will have to import it to your WordPress database.
Batch Delete Post Revisions WordPress
The problem. Post revisions, a new WordPress 2.6 feature, can be very useful, but they also increase the size of your MySQL database. Sure, you can manually delete posts revisions, but that’s very long and boring work. The solution. The solution to this problem is simple: we batch delete post revisions by using a simple [...]
Creating a Backup of Your Database
The problem. While the tips in the rest of this post have been tested, you should definitely not try any of them without first having a proper backup of your MySQL database. The solution. To create a manual backup of your WordPress database, follow these simple steps: Log in to phpMyAdmin and select your WordPress [...]
List Your Scheduled Posts : WordPress Hack
Using CSS Sliding Doors in WordPress Navigaton

The problem. The built-in wp_list_pages() and wp_list_categories() functions allow lots of things, but they do not allow you to embed a element so that you can use the well-known CSS sliding-doors technique. Happily, with some help from PHP and regular expressions, we can use this awesome technique on a WordPress blog.
Using Normal Quotes Instead of Curly Quotes : WordPress

The problem. If you’re a developer who often publishes code snippets on your website, you have probably encountered the following problem: a user tells you that the code you posted doesn’t work. Why? Simply because, by default, WordPress turns normal quotes into so-called “smart quotes,” which breaks code snippets.
Automatically Get Images on Post Content
The problem. Using custom fields to display images associated with your post is definitely a great idea, but many WordPress users would like a solution for retrieving images embedded in the post’s content itself. The solution. As far as we know, there’s no plug-in to do that. Happily, the following loop will do the job: [...]
Only Show Posts With a Specific Custom Field
Sometimes you only want to show posts that you’ve added a specific custom field to. A typical post loop begins like this:


