20,227 reputation
32562
bio website stephenharris.info
location Edinburgh, United Kingdom
age 26
visits member for 3 years, 3 months
seen 3 hours ago

Mathematics PhD student at the University of Edinburgh with a (geeky) passion for anything coding related.

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

Github | Twitter


Feb
25
answered How to create and retrieve data from a special registration form?
Feb
25
answered ID for posts/blogs page
Feb
25
comment How to create and retrieve data from a special registration form?
Any reason why you couldn't use the WP user tables but create a special role to separate these registered users from everyone else?
Feb
25
revised How to organise via Custom Fields on Category Page
edited title
Feb
24
revised Problem with meta box in Links
added 470 characters in body
Feb
24
answered Problem with meta box in Links
Feb
24
comment Limit taxonomy results to a single cpt
@helgatheviking I'm not sure it's necessary - I think is_tax covers it, but better safe than sorry I suppose...
Feb
24
comment Limit taxonomy results to a single cpt
is_tax checks if its the taxonomy's archive page.
Feb
24
revised Wordpress posts for multiple years
added 66 characters in body
Feb
24
comment Wordpress posts for multiple years
Just replace $query_string with your $args, leaving out the year part.
Feb
24
comment Limit taxonomy results to a single cpt
Good point about the set_query_var. is_taxonomy is depreciated though, and returns true if 'locations' exists as a taxonomy, not if the locations archive page is being displayed.
Feb
24
revised Limit taxonomy results to a single cpt
deleted 28 characters in body
Feb
24
comment Wordpress posts for multiple years
+1 exact same answer, just 34 seconds quicker :D
Feb
24
answered Wordpress posts for multiple years
Feb
24
revised Limit taxonomy results to a single cpt
added 306 characters in body
Feb
24
answered Limit taxonomy results to a single cpt
Feb
24
revised How to make the BuddyBar fix and scroll with the page
edited tags
Feb
24
comment Metabox doesn't retain values
And you using $meta['link'] = get_post_meta($post_id, 'link', TRUE); rather than $meta = get_post_meta($post_id, '_my_meta', TRUE);? Try var_dump-ing, but otherwise I'm fresh out of ideas :S.
Feb
24
revised $current_user var returns NULL
added 1 characters in body
Feb
24
comment Metabox doesn't retain values
See updated answer. Also get_post_meta($postid,'_my_meta',TRUE); doesn't return an array. get_post_meta($postid,'_my_meta',FALSE); does, but not the one you're thinking.