Displaying Random Post

Back in April I showed you how to add a custom loop to your sidebar for displaying the latest posts from a given category using the query_posts function. (see Custom Loop in Sidebar) Here's a little variation that will display a random post on a page using that very same query_posts function. Why do this? It's a great way to showcase posts that have long since been banished to the archives and might... continue reading

Mass Delete Spam Comments in Moderation

A question that pops up from time to time in the forums is how do I mass delete spam comments? A particular user had neglected his blog for a few months only to return and find thousands of spam comments awaiting moderation. Of course deleting this stuff through the WordPress interface could take hours or even days if you have a lot of spam. Login to phpMyAdmin and run this query ... DELETE from wp_comments... continue reading

How To Disable Post Revisions

One of the new features introduced in WordPress 2.6 was a handy little tool called post revisions. In a nutshell this allows you save and track any changes made to a post or page ala Wiki and quickly revert to an earlier version. But what if you are your blog's only author? What if you simply don't want this feature? It wasn't very long ago the WordPress support forums were filled with threads from... continue reading

Adding a Print Style Sheet

A recent poster to the WordPress Support Forum asked if there was an easy way for visitors to print her blog posts. Although there are a number of plugins that can achieve this there is no need for them as all browsers come with the ability to print pages. The key is to print the post itself and exclude all of the other stuff such as sidebars etc. Previously I showed you how to style individual posts... continue reading

Validifier

Back in March I described how to embed a flash object in your blog that is XHTML valid via two different methods. (see Embedding XHTML-Valid Flash) Thanks to a recent comment on that post there is yet another simple way to achieve this. Validifier is an online tool that easily generates standards-compliant flash embed code. Simply paste your embed code in the form box and click "Validify It!" and let... continue reading