Tom J Nowell

United Kingdom

tomjn.com

Age: 27

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

14h
comment How does the government cover up alien crash landings?
Well, the explanation could involve the aliens themselves, e.g. the Aliens EMP'ing the crash site to disable electronics, knowing that their presence in a more primitive society could be dangerous. It could be the spacecraft cloaked itself in such a way only the government can detect the debris
14h
comment How to execute a SQL-query which contains multiple queries?
Almost always in these cases, a custom post type or taxonomy would be safer, faster to implement, and more efficient thanks to the internal caching system. If you really must create a custom database table, use dbdelta, and if you want to execute multiple queries, use separate strings or an array instead of explode. A custom post type and taxonomy will give you templates, archives, filtering, query vars, caching, APIs, a free admin UI, and allow you to use WP_Query to grab items, as well as plugin support, and in the future, REST API support
16h
comment How does the government cover up alien crash landings?
Can you tell us anything about the aliens themselves?
16h
comment /portfolios works but /portfolio doesn't
Third party themes are off topic here, there's little that can be done without seeing code anyway
1d
awarded Notable Question
1d
comment Don't understand why theming is so strange and twisted
Anchor is a super lightweight CMS with different goals, history, and functionality to WordPress. That you contributed to it, or that it's mentioned is entirely irrelevant. You may hold a different opinion, but this is stack exchange, a Q&A site, not a forum. We deal with facts, and your question can't be answered in a concrete absolute fashion, so it was closed
1d
comment How does the government cover up alien crash landings?
You didn't specify if said cover up was succesful or not, and what time period this is ( if it's the present day, the event may have been leaked on the net before the UFO has gotten halfway through the atmosphere, possibly before it reached orbit )
1d
comment /portfolios works but /portfolio doesn't
You should contact the support for the theme you purchased
1d
answered Don't understand why theming is so strange and twisted
1d
comment /portfolios works but /portfolio doesn't
The portfolio post type, is it internally called portfolio as its post type name?
2d
comment website with many categories runs slow
Without benchmarking and timing code, and using debugging techniques and plugins, I can only speculate and make stuff up, none of which will be useful for you. You should also open a new question titled "How do I get the ID of the current category in a category listing?"
Aug
24
comment Wordpress theme development - Should i support IE8, IE9, IE10
This is more a general web development question, not a WordPress one, but if it was a WordPress one, then it'd be too broad and subjective, and highly dependent on who your clients and end user targets were. This question doesn't have a definitive answer, and can't be answered definitively
Aug
23
comment website with many categories runs slow
There's also no code handling parent category IDs, you should use the parent of the selected category to determine the drop down rather than using the URL, but none of these will give you major improvements, without further benchmarking and information from tools like query monitor, there's not a lot that can be garnered from this, and it's heading straight towards hyperlocalised territory ( aka it will only be of help to you, and only for a short while )
Aug
23
comment website with many categories runs slow
So there's nothing strictly wrong here, although, I'd use get_query_var to get the current category rather than parsing the URL, home_url instead of get_option('home'), and I'm not sure what get_query_var( 'listing categories' ) is meant to do, but it's a strange name for a query variable, and not one that's built into WordPress
Aug
22
comment How to run function depending on what template is selected in page UI dashboard?
Can you try and explain the problem you're trying to solve, that this is intended to fix?
Aug
21
comment website with many categories runs slow
posting inline would be best
Aug
21
comment website with many categories runs slow
A man carrying many bags will walk slower as more bags are added, until he eventually collapses. Without seeing the code it's difficult to see what's going on in your code without any code to see, and I don't see a sort function on the site you linked to. Perhaps you meant filtering? If so then did you mean that category archives are slow? If you've implemented a custom sorting system that could be scaling issues relating to big O() complexity from the method you've used
Aug
21
answered Why can't I see "Widgets" in my Apperance menu?
Aug
17
comment Permalinks stopped working after migration with WP all-in-one migration plugin
The new one looks better, and yes comments start with a #, don't remove them as they're read by the code to figure out where to put stuff if it's being autogenerated
Aug
17
comment call_user_func_array() error after moving to another server
you should remove that then, unless there's a longer version on your old server with the definition of my_admin
1 2 3 4 5