I have a client who wants to show a list of their posts ordered by the numerical value of a post meta field (custom fields are referred to as post meta data in the WordPress code, so I’ll be following that convention from now on). Unfortunately there doesn’t seem to be a way to do …
Tag Archives: WordPress
Fix users with no role – data migration plugin
So you’ve migrated a bunch of users over from another system and then, horror, you discover that they don’t have roles in WordPress. The WP Users admin screen doesn’t cope with this issue (why should it), so the only option would be to go through and manually select the roles for each user with no …
Continue reading “Fix users with no role – data migration plugin”
Editing many posts at once in WordPress
Need to edit many posts at once in WordPress? Is the standard limit of 15 posts on the Posts Edit screen just not enough for you? Well, there is a hack you might be interested in. This involves editing the core WP files, so is not recommended as a permanent solution or for production sites… …
Page load hooks in the WordPress admin area
There are a number of really handy hooks, each of which are specific to a page in the WordPress admin area. You can use these action hooks to enqueue scripts on particular pages, to process form requests, etc, etc. Despite these hooks being so handy, and despite using them a great deal, every time I …
Continue reading “Page load hooks in the WordPress admin area”
Custom taxonomies in WordPress
I’ve spent quite a bit of time over the last week getting to grips with custom taxonomies in WordPress, and I’m really pleased with what I’ve found. A taxonomy is a classification, and WordPress already has two taxonomies buil in: tags and categories. Categories lean towards a more formal taxonomy, which you might setup with …
Experiments with WP Cron
I’ve got a couple of projects coming up which are going to require scheduling tasks in WordPress either to go off and get stuff, or to check whether posts displayed are still accurate, etc. Luckily, WordPress has a pseudo-Cron implementation which I plan to use to . Let’s take a step back first and remember …
WordPress and basic authentication, problems with WP Cron and file uploads
I have a Google ego search on my name, so I can keep track of what the Internets is saying about me behind my back. The other day the ego search summary email arrived and included was one of my development sites. Which was annoying because I don’t want people browsing around my development, it …
Continue reading “WordPress and basic authentication, problems with WP Cron and file uploads”
Adding GET params to a URL in WordPress with add_query_arg
I am finding myself using this function a lot now, and I constantly forget the function name: add_query_arg(); It allows you to pass in some additional parameters, and a URL, and receive back the URL with the query string params added. For example: $some_url = “http://simonwheatley.co.uk/?stuff=whatever”; $params = array( ‘wp_siteurl’ => “http://www.example.com” ); $some_url = …
Continue reading “Adding GET params to a URL in WordPress with add_query_arg”
Plugins in the DFID site
I’m chuffed to see Puffbox and the Department for International Development (DFID) launch the new DFID group blog. Naturally it’s always nice to see our government open up to us, the people of Britain, but I’m particularly gratified that they’re using some of my WordPress plugins to do it.
The first WordCamp UK was a cracker
I spent the weekend in the company of 50 or so other WordPress users, designers, developers, the odd Aussie Automattician, and a WordPress lead developer at the first WordCamp UK. It was great to meet a such a varied and interesting group of bloggers and blog makers, many of whom I’m going to have to wait until next …