15,038 reputation
21549
bio website tomjn.com
location United Kingdom
age 26
visits member for 3 years, 10 months
seen 55 mins ago

I'm a fulltime WordPress Developer at Code For The People in the UK. I also build RTS AIs & attend WordPress/design conferences.

Any questions please say hello, I can normally be found in the WPSE chat ( link in the top header ).


55m
comment WordPress check if value equals and echo “checked”
What is the value of the locationAssigned post meta? Can you var dump or print_r it into a <pre> tag?
1h
comment Wordpress Page doesn't load the template selected
That isn't how custom page templates or post specific templates work, have you looked at the template hierarchy diagram?
1d
comment save_post not called in plugin / custom field still saving overwriting metaboxes
can you post the entire class? Your static function seems a little odd/redundant
1d
comment jQuery animate not working
This is not a WordPress issue, this is a javascript syntax issue. You're missing a comma. In future check your error logs and use your browsers dev tools
1d
comment jQuery animate not working
What does your javascript console say?
1d
comment How to load JS for specific screen size using wp_enqueue_script?
PHP can't tell what the size of a screen is beforehand. Detecting mobiles also falls apart when you consider that browser windows can be resized. What you're trying to do will also fail when you deploy caching plugins
1d
comment Does auto_update_plugin Filter Work When Put In Theme's functions.php File
which config.php is this? You shouldn't be modifying WP Core
2d
comment why only admin or visitor can see a custom page?
You should post it as an answer and explain why it fixes your issue
2d
comment why only admin or visitor can see a custom page?
All Pages are posts of type 'page', can you elaborate on what you found in functions.php?
2d
comment why only admin or visitor can see a custom page?
Can you provide more information? Which page? Is it a post or a page? What post type is it? Whats its post status? Which roles does it work for? Which roles does it not work for? What were you expecting to happen instead? Is this still the case when you deactivate all plugins? Have you tried it with the default theme?
2d
awarded  Popular Question
Jul
22
comment Need plugins and themes from clients site
Who is the company currently hosting the site?
Jul
21
comment WordPress Single Conditional for Search Page
If the answer to this question is no, then the other question is no, if the answer to this question is yes, then that answer is about 80%~ of the work needed to do the others. Any comments or answers are extremely relevant to eachother
Jul
21
comment Display WordPress Search
Also WordPress doesn't use PHP Sessions it uses cookie sessions
Jul
21
comment WordPress Single Conditional for Search Page
Related wordpress.stackexchange.com/questions/155323/…
Jul
21
comment Display WordPress Search
I imagine it would need to be saved in a cookie, it can't be user meta because the visitor may not be logged in. Keep in mind this won't work if the solution is PHP based and you're relying on page caching, it'd have to be javascript based, which probably means local storage. get_search_query only works on search.php because search.php is used when searching. If you're not searching it won't work as there is no search query to get. This implies a lack of understanding of how the templating system works and how templates are loaded
Jul
21
comment Get a variable from object in array
You should do 1 thing per line, whereas you're actually doing 4 things on that line, making it difficult to debug
Jul
20
comment GrandParent ,Parent, Child issue
Try the adjusted code with get_posts rather than get_pages
Jul
20
revised GrandParent ,Parent, Child issue
added 32 characters in body
Jul
20
comment GrandParent ,Parent, Child issue
@Nemothefish exactly what did it do? How was it different to what you're trying to do? I can't help you if all I have is "it doesn't work", I need more detail, a lot more