21,522 reputation
33071
bio website stephenharris.info
location Edinburgh, United Kingdom
age 27
visits member for 3 years, 10 months
seen 2 hours ago

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
6
comment Setting Event to Expire Using Custom Metabox
What do you mean by expire? That the post is deleted/changes status?
Mar
6
comment Integrating an interactive map into a Wordpress custom post type
Nope, see updated answer.
Mar
6
revised Integrating an interactive map into a Wordpress custom post type
added 32 characters in body
Mar
6
comment Integrating an interactive map into a Wordpress custom post type
Forgot to add global $post before the foreach statement.
Mar
5
comment How to choose which template to be used for multiple taxonomy query?
Try updated answer. Appears is_tax only returns true for at most one taxonomy.
Mar
5
revised How to choose which template to be used for multiple taxonomy query?
added 56 characters in body
Mar
5
comment get_meta_data within a loop
You can post the answer immediately :D
Mar
5
comment get_meta_data within a loop
Could you post this as an answer, and then accept it as correct (you'll have to wait 24 hours). It takes it off the unanswered pile, and makes it easier for people to identify the solution. Thanks.
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