How To Make A Simple Paginate PHP Class With Light & Dark Styles

View Demo Create a simple paginate class in PHP made up of 3 functions. - Constructor - This function is called as soon as the class is initialised so this is a good place to put the functionality th...

Display Breadcrumbs On Wordpress Post Without Plugin

Breadcrumbs are used to show the process to which you would navigate to a page. For posts on your wordpress blog you can use breadcrumbs on your posts to show the categories which this post is in. Dis...

Create Tiny URL Link With PHP Function

Tiny URL site allows you to compress the size of your URLs which is mostly used on the social networking site twitter, because of the limited characters you can use. But to use the tiny URL feature yo...

Display Most Commented Posts In WordPress

A popular feature to add to your wordpress blog commonly in the sidebar is to display your blogs popular posts. There are main plugins that can do this but I prefer not to use plugins as it is quick a...

Add Link Around Wordpress Post Featured Image

Since Wordpress version 3.0 it added a feature that will allow you to add featured images to your Wordpress posts. This can easily by done by using the set featured image link on the right of the post...

PHP Code to Combine and Compress CSS

A couple of Google updates ago they worked on page loading speeds, so if your page loaded faster then your website will be ranked higher. Easy ways to improve on your website speed is: Reduce the siz...

How To Use CSS :nth-child

There is a CSS selector which allows you to select the exactly item that you want from a list. This selector is the :nth-child selector, in this tutorial you will learn what you can do with the :nth-c...

Files Needed To Create A Wordpress Theme

What Makes Up A Wordpress Theme So I decided to build my own wordpress theme for this blog. The main reason for this is so I can make it exactly how I want it and in the future I can change it to exac...

PHP Password Generator Snippet

Get stuck trying to pick a new password each time you signup to a new service or website. Most people do use the same password on every site that they go to but this can be dangerous if 1 site gets ha...

Wordpress Plugins For Any Blog

I'm often get asked what are the best wordpress plugins to use on a new site or for any site for that matter. I can't give an exact list of plugins to use because obviously every website different. So...

Change style depending on User Browser in Wordpress

In wordpress it is possible to change the body tag class to something depending on the browser the user is on. This is done by using a hook with a filter to add extra classes to the array for the body...

Regular Expression To Validate Email Address

The follow snippet is a function I use to validate email addresses. It is a very simple function which uses a regular expression pattern match to test if a email is of a correct format. Valid Email Fo...

Add Custom Favicon To Your Wordpress Blog

A favicon (short for ‘favorites icon’), are little icons associated with a particular website shown next to the site’s name in the URL bar of most browsers. This will also appear in the tabs of the br...

Enable Threaded Comments in WordPress

Threaded comments is a nice feature to highlight to your visitors the admin comments or reply comments this enables better readability of the comments section of your blog posts. There are plugins whi...

WordPress Change Excerpt Length

In WordPress you can apply a excerpt to blog posts to give a preview of the post which is most likely used on category or search pages. The default for this is 250 characters but you can you can chang...