Blog

Thoughts, articles and tutorials about web and design.

Tutorials

w3-total-cache

Video Tutorial: How To Configure W3 Total Cache

One of the best plugins to enable caching and speed up your WordPress site is W3 Total Cache. It can however be a bit tricky to configure properly. In this video tutorial, I walk you through how to configure it for maximum performance on your WordPress site.

While some settings will need to be set specifically for your goals and site specifics, the tutorial gives you a good set  of defaults and in it, I point out if there are settings you can experiment with on your own to tweak the performance.

Read More…

admin-spacer-wordpress

Adding a Separator to the WordPress Admin Menu

Custom Post Types in WordPress are superb! More often that not, websites that we build for clients have more than one custom post type which inevitably will clutter up the admin menu slightly. The solution to the problem is one that WordPress itself employs: De-clutter the meny by inserting a separator in between sections.

Doing this requires just a couple of simple PHP functions that you can add to your functions.php file. One to create the separator, one to add  any number of separators at any position in the menu and finally an action hook into the menu to add it. Read More…

Check For Odd/Even Numbers in PHP

Every time I wish to insert something or style something with alternate style, every other, third, fourth etc. row/column or item, I usually have a PHP If Statement at hand. While you can easily check if something matches something else or a number of other conditionals, checking for odd and even numbers requires some mathematical thinking. Follow on after the jump to see how.

Read More…

How-to: Manually Select Posts on Frontpage Using Sticky Posts

Quite often companies would like their front page to display blog items but only the ones they specifically choose. There are a few different ways to go about doing this in WordPress which I will touch on first, however one of the best ways is to ask them to make the posts sticky and create a special template for the front page that only shows sticky posts and then another template for the blog that ignores the sticky status.

Read More…