Advanced CPT Filtering in WordPress

Posted by on Feb 3, 2012 in Blog | No Comments

Prior to WordPress 3.1 you could only use one meta_key : meta_value : meta_compare in a query_posts. This meant that you could, for example, get the custom post type product, filter it to get only those products that have a price >= 100. However you could not then orderby department ASC. Neither could you get ...

UK GovCamp 2012

Posted by on Jan 23, 2012 in Blog | No Comments

As mentioned on Thursday, Friday was the 5th UKGovCamp and the biggest yet. The day started well (with free t-shirts and lots of tea/coffee & biscuits), and even 260 people introducing themselves to the room was kept on schedule. You can see the agenda agreed on Flickr courtesy of David Pearson. There was a definite ...

Heading to UKGovCamp2012

Posted by on Jan 19, 2012 in Blog | One Comment

Tomorrow I will be getting up at silly o’clock to drive to Cambridge, park, walk 2 miles to the station, train to Kings Cross, tube to Victoria and a walk to Microsofts UK HQ. It’ll take about 3.5 hours, but, based on the reports from last year, worth every minute. This will be my first ...

Highlighting Custom Post Types in the menu

Posted by on Dec 15, 2011 in Blog | One Comment

There seems to be a problem/oversight in WordPress at the moment (afaik). You can generate Custom Post Types (CTP) easily enough, and have them visible on any page using templates/the loop, but when you click through to a single CTP WordPress assigns the current_page_parent to the default posts page. For many that will mean highlighting ...

Conditionally loading plugin scripts in WordPress

Posted by on Dec 9, 2011 in Blog | No Comments

I’m a big fan of WordPress – it’s both easy to use as an author and easy to develop for. There are also a huge amount of free (and paid) plugins to extend the core functionality. Unfortunately there is a downside – most plugins do not conditionally load their files only on pages that call ...

York House photoshoot

Posted by on Nov 28, 2011 in Blog | No Comments

Last weekend I had the pleasure of staying at York House in Tetbury. While they won’t be opening until spring 2012 – just in time for the Gold Cup – this boutique bed & breakfast was ready for it’s first photoshoot. After spending an evening with the proprietor Brock Bergius discussing plans for the website ...

Tracking downloads in Google Analytics with jQuery

Posted by on Nov 25, 2011 in Blog | No Comments

Google Analytics (and other similar services) aren’t 100% reliable, but they give a valuable insight into what the visitors to your site are up to. One thing they won’t do is track clicks on download links, unless you specify an onClick action for each link. But here jQuery comes to the rescue – just a ...

MediaElement.js Joomla plugin updated

Posted by on Nov 1, 2011 in Blog | No Comments

The MediaElement.js plugin for Joomla I released on GitHub has now been updated to v0.4. Significantly it adds support for more file formats and fixes one annoying bug. Find the post about the original release here.

Please don’t steal images

Posted by on Oct 14, 2011 in Blog | One Comment

I’m quite flexible with copyright, with regards to my non-commercial work at least. I also fully support releasing back to the community – there is a huge wealth of tutorials and code examples provided for free that help us all, and I feel it is our duty to give back in our own ways when ...

MediaElement.js Joomla plugin released

Posted by on Oct 13, 2011 in Blog | 2 Comments

Just a short announcement that I released a plugin to enable use of MediaELement.js in Joomla on GitHub recently. It is in it’s early stages – functional but lacking a couple of features. Hopefully I will be able to add more support for non-core MediaElement.js features of the next weeks/months.