Category: Tutorials

Ajax Themes

Ajax is a great method for loading new content onto a web page without having to do an entire page refresh. It’s sometimes used in WordPress themes for paging, or comments- but this tutorial explains how to ajaxify larger portions of the site and use HTML5 pushstates. Continue reading

Posted in Tutorials | Replies: 12

Cleaning Up the TimThumb Hack

Several of my websites were hacked this last week using the TimThumb exploit. Here’s instructions on how to find the files and replace them- and also the process I used for patching up my sites after the hack. Continue reading

Posted in Tutorials | Replies: 15

Admin Notices in WordPress

Occasionally a plugin or theme will need to display a notice to users in the WordPress dashboard. This is fairly easy to do using the admin_notices hook, which shows a standard message box at the top of the screen. Continue reading

Posted in Tutorials | Replies: 3

Checkboxes and Booleans

A little tutorial on boolean basics. The string “false” returns true, and other fun facts. Continue reading

Posted in Tutorials | Replies: 1

Set a Cookie in WordPress

Sometimes you want to detect new users on your site versus returning visitors and display different sorts of information to them. An easy way to do this is to set a cookie. Continue reading

Posted in Tutorials | Replies: 9

Adding and Removing Tags on GitHub

For my projects on GitHub I like to have the most recent stable version tagged so that people have an easy download link to it. So when I go from versions 0.4 > 0.5 on project (for instance), I do this. Continue reading

Posted in Tutorials | Replies: 5

Javascript Race Conditions

I’ve encountered a couple issues with javascript race conditions this last week. Here’s a fix you can use. Continue reading

Posted in Tutorials | Replies: 1

Code Snippet: Get WordPress Version

Code snippet for checking which version of WordPress the user is running. Continue reading

Posted in Tutorials | Replies: 5

More Tags or Excerpts

What’s the difference between the_content and the_excerpt. What if you want to use the more tag, but strip out images and objects? Big questions. Answered here. Continue reading

Posted in Tutorials | Replies: 5

How to Add Custom Post Type Icons

How to add a custom post type icon to your WordPress theme, including downloads to use the portfolio icon and directions for styling the admin screen. Continue reading

Posted in Tutorials | Replies: 5

Add a random body_class

I’m working on a WordPress theme project where the background needs to change randomly on each page load. To do this I added a body_class that generates a random number between 0 and 5 for me to use for styling. Continue reading

Posted in Tutorials | Replies: 4

How to Install WordPress

This video tutorial shows how to install WordPress on most any web host that uses cPanel, including BlueHost, InMotion, and HostGator. It shows how to upload the files, edit your wp-config.php file, create a database, create a database user, and then do the actual install. Continue reading

Posted in Tutorials | Reply
Page 1 of 3123