11,539 reputation
11135
bio website tomjn.com
location United Kingdom
age 24
visits member for 2 years, 8 months
seen 2 hours ago
stats profile views 471

I'm a fulltime WordPress Developer at interconnect/it 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 ).

If you'd like me to work on something for you, why not give my company a call? ( Office hours GMT 10-18:00 )


4h
comment Find all posts via SQL beginning with A of type B
I've amended the question title to reflect what the question actually is, this may be more helpful for those looking in the listings for questions to answer
4h
revised Find all posts via SQL beginning with A of type B
edited title
6h
comment Conditional logic for the new 3.6 structured post formats
Your question has ambiguities, for example it could mean "How do I detect 3.6 and disable a metabox" or it could mean "How do I disable a metabox in 3.6 when using a post format that isn't standard?" or "How do I show a metabox only for image post formats?" etc etc
1d
comment Form Security: nonce vs. jQuery
I've ammended my answer to be clearer
1d
revised Form Security: nonce vs. jQuery
added 850 characters in body
1d
comment Form Security: nonce vs. jQuery
Also, what's to stop me opening up a command line and sending raw data, bypassing all clientside restrictions? You cant detect these things if there isn't even a browser involved. A lot of browsers already have extensions to do this, and anyone with basic html knowledge could insert their own form via firebug/inspector
1d
comment Form Security: nonce vs. jQuery
Also, how would you disable access if the user doesn't have JS? What's to stop me pretending I have JS, or injecting my own JS? You will need PHP server side validation. There is no avoiding it. The biggest thing about secure coding is not to trust a thing the client sends to the server, that's why we have nonces to verify a request came from a valid place, and data sanitisation to check what was sent was valid
1d
comment Form Security: nonce vs. jQuery
Ask yourself, "Why would using AJAX make any difference at all to the use of nonces". The AJAX API is not magic HTTP voodoo, your browser doesn't route the address bar requests down the phone line and the AJAX requests through the water pipes, they're both the same
1d
answered Form Security: nonce vs. jQuery
2d
comment Styling Contact Form
Perhaps the main stack overflow site would be better?
2d
comment Styling Contact Form
Those are radio buttons, and this is a purely CSS question, no WordPress knowledge required, close voting as off topic
2d
comment how to make Breadcrumbs for any types of link starting with home
There are mountains of plugins and code snippets that do this, and printing a link to the homepage isn't hard. Show what you've already attempted or explain the part you're having difficulty with.
2d
comment Filter posts by multiple checkbox categories
I've removed the PHP tag spam and indented the code so it's readable. You should be indenting everything, makes it so much easier to do things
2d
revised Filter posts by multiple checkbox categories
added 34 characters in body
2d
comment Filter posts by multiple checkbox categories
Can you switch your code to while(){} instead of <?php while (): ?> <?php something(); ?><?php endwhile; ?> ? The mix of altsyntax and an opening closing php tags here there and everywhere makes it very difficult to see what's going on. Also WP_Query not WP_query
May
20
comment Override Taxonomy Template
When you view the page, what does the body class say?
May
18
comment How to add character to content of post?
shortcodes? Can we see an example of content before and after?
May
17
comment WP_query posts closest to todays date
defining array keys twice isn't going to work, it's actually invalid PHP code, if your code works but gives the wrong result, then you have performed miracles, it should give a syntax error
May
16
comment Echo author slug in post edit page
Can you edit the solution out and put it in an answer?
May
16
answered is_home, and is_front_page conditional problem