21,337 reputation
32969
bio website stephenharris.info
location Edinburgh, United Kingdom
age 27
visits member for 3 years, 9 months
seen Jul 29 at 23:05

I develop WordPress plugins, including the event management plugin, Event Organiser. I also write for Wptuts+

I've recently submitted a PhD thesis in Mathematics at the University of Edinburgh and I am currently working for the Digital Directorate, specifically as developer with the Glow blogs team.

Github | Twitter


Mar
5
comment PHP Syntax Error on get_posts
Yup, I missed that one.
Mar
5
answered PHP Syntax Error on get_posts
Mar
5
comment How to choose which template to be used for multiple taxonomy query?
It should read if(!empty($alternate)). Try wp_die-ing to determine if the logic is correct (i.e. it tries to locate your alternative template) and if it is, use wp_die to see if it has located the template.
Mar
5
answered Integrating an interactive map into a Wordpress custom post type
Mar
3
comment Getting custom admin submenu item to highlight when its active
I'd be interested to know what solutions come up for this, since it seems quite difficult to do. The 'WordPress' way would be to add a drop-down filter menu as shown in your screenshot.
Mar
3
comment How to choose which template to be used for multiple taxonomy query?
There is a missing right bracket after if(!empty($alternate) that might be the problem. If not, go into 'debug' mode so that you can see any error messages.
Mar
3
comment Settings API validation callback
Re. merging arrays - it is fine to merge arrays when all the arrays have been sanitised and checked. In this case one was, and the other was straight from the database may be considered to be ok.
Mar
3
comment Settings API validation callback
Any reason why you can't have one big form? (You can still style to appear as multiple sections. Then (any) submit button would send the whole form and make life a lot easier
Mar
3
answered Settings API - getting hidden input / submit button's name
Mar
2
answered How do I query posts and have their related taxonomies returned in the results?
Mar
2
answered Showing a placeholder/default img, if no featured image is set
Mar
2
answered Is it to possible to insert a page in the post depending on the category ofthe post
Mar
1
answered Find the post an attachment is attached to
Mar
1
asked Custom taxonomy admin page
Mar
1
answered Settings API validation callback
Mar
1
answered How To Change Custom Taxonomy To Radio Buttons
Feb
29
comment Problem with meta box in Links
Doh! Links are post types, so you can't use _post_meta functions. In fact, I don't think you can store link meta data unless you store it in your options table.
Feb
29
answered Paginate Custom Post Type Page
Feb
29
comment Problem with meta box in Links
It's hard to say. Temporarily, try dying on a failure of a check rather than returning, e.g. wp_die('reason for failure'). That way you can determine which check your a failing on, and that might help determine the problem.
Feb
29
revised get_the_terms issue
edited tags