Blog

Tutorials

phpmyadmin-wordpress-database

How to migrate a WordPress database from a dev to a live environment

The process of moving a WordPress site from one server to another and/or one domain name to another is actually not that complicated once you get the hang of the process. Apart from moving all the files via FTP, you need to migrate the database which holds all of your posts, pages and settings.

In this video, I will walk you through how this migration is done via phpMyAdmin that most web hosts use, and changing the domain name properly in the database through the popular Search Replace DB script. Continue Reading »

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.

Continue Reading »

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. Continue Reading »

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.

Continue Reading »

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.

Continue Reading »