Category Archives: Development

information about stuff i’m up to.

Using Open Graph Protocol in WordPress for Social Integration (Facebook)

What is the Open Graph protocol The Open Graph protocol enables integrations of your web pages into the social graph. It is promenantly used by the Facebook Platform. Whilst the Read More »

Google Maps API Keys

Every now and then, I need a Google API Key for use with the Maps service. Looking at the page, it’s recently changed to some fancy AJAX, and makes a Read More »

Shell script to create new site template

Having a dedicated Linux box without any form of control panel on it is becoming the norm for me. To help me out, I created a small shell script to Read More »

String replacement with SQL

Quite often, especially when working with WordPress sites, I need to update content with a new web address. This happens when a site has been on a preview domain whilst Read More »

String replacement in Smarty templates

Usually, all data should be ready for display by the time it hits a smarty template, as it’s a presentation layer. However, from time to time, there is a need Read More »

Working with Yahoo! Maps Service

I did some work with the Yahoo! API recently to process CSV files of addresses to find longitude and latitude. The final code takes a CSV file, processes it, and Read More »

Using custom taxonomy when getting posts with WordPress

Using custom taxonomy in custom post types means that you can add categories, or tags to your custom posts. This can be achieved with code like the following – added Read More »

Sorting order using a custom field in WordPress

I’ve been working recently on the portfolio section of this blog. It uses a custom post type I created that I’ve got installed as a plugin. One thing that always Read More »

Getting a list of blog posts in WordPress

Quite often recently when building WordPress themes for smaller sites (ones that have a brochure feel, but have a blog section), the design has included an area on the frontpage, Read More »

Excluding directories when tar/gzipping

You can exclude directories when tar/gzipping folders in the following way:

Delay link event with AJAX jQuery

I’ve been working on a script recently where it would add warnings when a user clicked on certain URLs. I attached an event to a link like so (simplified):

Read More »

Another take on feed caching with WordPress

Since version 2.8, WordPress has included the SimplePie class at it’s core. For a while, SimplePie wasn’t being maintained by the developer, but the WordPress team took over and kept Read More »