A (better) alternative to @import in child themes

There’s a better way to pull in your parent theme’s CSS than the traditional method of using an @import rule in style.css: you can enqueue the file, resulting in speed improvements for your theme.

Comment list

Stop receiving comment notifications as site admin

This snippet will remove the site admin from the list of email addresses that receive notifications for comments, which is especially helpful for webmasters, who usually don’t care about comments.


How to set end dates for content

Getting content to publish at a set time is easy enough, but when you want it to disappear at a set time, that’s a little different. This is how you can use custom meta and a custom loop to achieve your needs.


Obfuscating email addresses in WordPress

Sometimes, it would be nice to be able to put your email address on your site, without fear of it being scraped and subjected to spam. This simple shortcode solves that by converting characters to HTML entities so that it isn’t recognised as an email address to crawlers.

User-defined content from a shortcode

How to use transients to improve shortcode performance

By using transients to store the results of a specific shortcode query (even with user-defined variables), you can reduce complex queries to the database and speed up your site.

Revised WordPress 3.6 menu UI

How to use transients to speed up your WordPress menus

This is another way in which you can use transients to improve the speed of your site by replacing your menu queries with easily-retrieved transients from the cache.

Transients in the database

Using transients to improve the performance of custom queries

By using transients, you can significantly reduce the number and intensity of calls to the database, making your site much faster & less likely to time out or experience an error.


An introduction to transients in WordPress

Transients are an excellent way to speed up complex queries in WordPress, that you really should be using to avoid bringing a site to its knees like I did, by caching those queries instead of repeating them on every page load.


Using query vars in shortcodes

You can use query vars in WordPress to customise the content of any page by creating custom shortcodes that use the query vars to display different content depending on what the query var is.

Revised Redirection Rule

Regex for beginners – tips for redirecting traffic

Once you realise just how Regular Expressions are, they can be immensely useful for redirecting traffic without any headaches.