Development

Category icon

How to add the TinyMCE editor to a WordPress meta box or plugin form →

Posted on February 7, 2012 in Development with 0 comments.

I’ve worked on a number of WordPress sites and custom plugins recently where I have needed to add the TinyMCE editor to a meta box that was added to a post type and/or a custom textarea fields in a plugin. Pre-WordPress 3.0 this was quite difficult and required a bit of hacking, but luckily since [...]

Continue Reading →

Category icon

Quick tip for WordPress developers: Use the WP_DEBUG constant →

Posted on February 3, 2012 in Development with 0 comments.

Over the past few years I have worked with many different WordPress plugins and themes, both on my own websites and on my clients websites. During this time, I have noticed something that a lot of developers are doing that they shouldn’t be doing. I’m talking about developers not using the WP_DEBUG constant when building [...]

Continue Reading →

Category icon

Symbolic links on a Mac (OS X) →

Posted on January 23, 2012 in Development with 0 comments.

If you are a developer and have not come across symbolic links before, then you need to read this blog post. Symbolic links are extremely useful if you hate copying and pasting duplicate files and folders in different places/projects. So what exactly are they? Simply speaking, they are a virtual link or shortcut between a [...]

Continue Reading →

Category icon

How to ignore WordPress pagination and display all posts on a page →

Posted on January 19, 2012 in Development with 2 comments.

There are times when you want to display a list of WordPress posts (or even custom post types) on a page and not have them paginated into multiple different WordPress pages. For example, you may be creating an archive page and instead of showing just the latest 10 posts in your category, you want to [...]

Continue Reading →

Category icon

Escaping input to the PHP mail() function →

Posted on January 15, 2012 in Development with 0 comments.

I recently built my email contact form on this website and thought I would share with you the method which I used to escape input to the PHP mail() function in order to avoid security vulnerabilities on your own contact form. You may think that the mail() function is a relatively safe function and data [...]

Continue Reading →

Category icon

WordCamp Cape Town 2011 slides →

Posted on September 16, 2011 in Development with 1 comment.

I just got back yesterday evening from WordCamp Cape Town 2011. This years WordCamp was organized by Ashley Shaw and his team at LightSpeed. It was definitely one of the better run conferences that I have been to and I learned a ton. I gave a talk on using WordPress as a mobile publishing platform. [...]

Continue Reading →

Category icon

Variable type in PHP and MongoDB →

Posted on November 30, 2010 in Development with 1 comment.

Since working with Mongo I have come across a few small quirks. They are not necessarily good or bad, but simply things you just need to be aware of when working with Mongo. One such quirk is that you need to define your variable type within PHP before you store or fetch data in a [...]

Continue Reading →

Category icon

Installing a color scheme for Vim on Mac OS X →

Posted on September 29, 2010 in Development with 0 comments.

I started messing around with Vim a little bit this evening. Mostly because I am curious to see why everybody talks about it as such a powerful editor. The first thing I wanted to do was install a color scheme for syntax highlighting. I like dark backgrounds with bright text, so I decided to go [...]

Continue Reading →

Category icon

Doing case sensitive MySQL queries →

Posted on September 20, 2010 in Development with 0 comments.

You may have noticed that when doing a MySQL query and using the WHERE clause that your query will be performed without taking the case of your letters into consideration. So if you are looking for rows which have the word “case” in them, rows which contain the word “Case” will also appear in your [...]

Continue Reading →

Category icon

How to install the MongoDB PECL extension on MAMP →

Posted on September 14, 2010 in Development with 4 comments.

In order to get PHP talking to MongoDB you need to install the MongoDB PECL module. The process is really simple of you are using MAMP. Obviously, make sure that MongoDB is installed on OS X first. First you need to download the precompiled MongoDB PECL extension. You can find it on their GitHub page. [...]

Continue Reading →