Tom J Nowell

United Kingdom

tomjn.com

Age: 26

I’m a VIP Wrangler at Automattic, a former Code For The People developer, a speaker at conferences, and an elected community moderator at WordPress Stack Exchange.

I also blog about WordPress and PHP at http://tomjn.com

12h
comment ACF Google Maps - Multiple Pins
You should wrap that all in an if ( $wp_query->have_posts() ) so that you don't call wp_reset_postdata() if there are no posts found. You should also verify that $location is an array and not an error value, and that the keys 'lat' and 'long' actually exist, if either of those assumptions fail you'll get warnings and notices in your error log or on the page
14h
comment Accessing GET variable named 'error'
I'd advise against your renaming solution unless you can insert it at the earliest possible time as the error var is still used by WP Core, and the init hook is quite late for such a change
14h
answered Having a custom post slug that clashes with an existing directory
1d
awarded Teacher
1d
answered Registration form not registering First and Last name
1d
awarded Commentator
1d
comment Buying Jupiter for prize of ISS
Original question says there's nothing on the space station we don't already know about, so there's nothing to reverse engineer unless you reach the Jupiter station
1d
comment Buying Jupiter for prize of ISS
They could also confiscate the nuclear weapons then pretend they never existed and build the highway anyway
1d
awarded Autobiographer
1d
answered Why are consumers located near high-voltage lines typically not connected to those lines but instead are connected through a lower high-voltage line?
1d
comment Non-permalink custom taxonomy not found
Why the redundant call to register_taxonomy_for_object_type?
1d
comment Unable to check if plugin is active
I would STRONGLY recommend against including a plugin file from inside a theme like that. That function is also only available inside the admin area
1d
comment How can make cache for my site
You're looking for css minification, I'm not sure copying that site is the best thing to do
1d
answered Using esc_attr_e
1d
awarded Autobiographer
1d
answered Accessing GET variable named 'error'
1d
comment Accessing GET variable named 'error'
Can you post some code?
1d
comment How load fucntions in other class.php
Ah, you are trying to implement a custom AJAX endpoint. I strongly advise against this for security reasons, and suggest you use the WP AJAX API instead, it'll be easier and more secure
1d
answered How to tell if a plugin is multisite compatible?
1d
comment How load fucntions in other class.php
Are you trying to implement a custom AJAX endpoint for AJAX requests or form submission?
1 2 3 4 5