• WordPress: Upload user-submitted files from the frontend

    There are many use cases for allowing users to upload files from the frontend, but the trick is making sure the file is uploaded and saved in the WordPress media library correctly. You can easily use standard PHP functions to handle the upload and then store the file wherever you like, but then you won’t […]

    Read More

  • A complete, versatile options page class for any WordPress plugin

    Building an options page for a plugin can be a daunting prospect, so here's a single class that will help you to create a versatile and user-friendly options page for your plugin that fits neatly into the WordPress dashboard.

    Read More

  • WordPress: Add items to the ‘At a glance’ widget

    The WordPress dashboard includes a handy widget that displays some brief information about your site at a glance - this snippet will show you how to add your own custom post types to that widget.

    Read More

  • Snippet: Check for the latest WooCommerce version

    With WooCommerce 2.1 having just been released, you'll find that a number of functions that you have been using in your plugins and themes have now been deprecated in favour of better and more aptly named functions. Here is a simple function that checks if a site is running the specified version of WooCommerce or higher.

    Read More

  • Snippet: Check for WordPress 3.8 and above

    Seeing as though WordPress' dashboard UI is getting a major overhaul in WordPress 3.8, I've found myself having to cater for the new styling in a number of different plugins. This has created a need for a simple way to check if a site is running v3.8 or not. Luckily there's a very simple way to do this

    Read More

  • Developing the future of podcasting

    Almost exactly a year ago I released Seriously Simple Podcasting, a podcasting plugin for WordPress that does exactly what it says on the tin - makes podcasting simple. Now the time has come for a massive overhaul of the code - the end result of which will be v2.0 of the plugin.

    Read More

  • WordCamp Cape Town 2013

    Since the beginning of the year, myself and a few of the guys from WooThemes have taken over the organising of the WordPress Cape Town community. Over the course of the year we have organised two local meetups - one for WordPress' 10th Anniversary and the other just because we thought the community deserved it. Next up is none other than WordCamp Cape Town 2013!

    Read More

  • WordPress: Random post order with correct pagination

    If you have ever wanted to display your posts (or a post type archive) in a random order, but keep the pagination consistent then here's your solution.

    Read More

  • Storing snippets in Gist

    I've been using Gist for a while, but only as a way to quickly share snippets of code with people. I've now decided to change that a bit and make better use of the service - as a result I have added all my snippets from this blog to my Gists and I will continue to add even the smallest snippets as I develop them.

    Read More

css.php