When you want to include code fragments, there are several options. You can use highlighter.js to manage all the code snippets yourself, you can use a WordPress plugin to add code or you can use GitHub.com Gists. Personally I use the latter. It works perfectly since you can change it via GitHub and it’s on …

By default, when adding a new top level menu to your plugin or theme administration pages, WordPress adds a menu item with the same name. However, you might want that menu item to be name differently. For example, I like to name the first item ‘Settings’ or ‘Global Settings’.With the following code fragment you will …

Categories have a lot of uses in WordPress. Not only can you use it to group certain posts about the same subject, sometimes we want to treat them differently. For example, on this website I have a few category of posts. Product pages need to be displayed differently than F.A.Q Posts. Luckily, we can easily …

Altough WordPress is a great platform with many features, it doesn’t provide us with the ability to select a page template for Custom Post Types or just single blog posts. I needed that feature for my own website so I decided to make a small and efficient plugin to do so. In this post I …

There is no doubt that MySQL’s “INSERT IGNORE’ queries are very useful. This allows you to insert rows into a database without using extra queries to check existence and make use of unique indexes without errors. In WordPress plugins or themes this is a little more tricky to do, because you still want to be …