18,653 reputation
31860
bio website tomjn.com
location United Kingdom
age 27
visits member for 4 years, 11 months
seen 6 hours ago

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


6h
comment make get_post work in the loop
Why are you loading a page template inside another page template?
2d
answered Custom post type returns bad post ID
2d
comment Custom post type returns bad post ID
@Sebastian this isn't a forum, comments and discussion go here, only post an answer if you believe you've got a solution. Then you can then mark the correct answer as accepted to award reputation points
2d
comment Custom post type returns bad post ID
Which value does it always return? Is there a particular reason get_the_ID doesn't work? Can we see your code? Is this a main loop or a custom loop?
2d
revised How do I visit archive-post.php?
added 295 characters in body
2d
comment How do I visit archive-post.php?
Underneath the homepage option in settings is a posts page option, that's what that option is intended for
2d
answered How do I visit archive-post.php?
2d
comment how to use two permalinks for one custom post type
Why would you want this? Can you provide some context as to what problem this is intended to solve? You're aware there are SEO and duplicate content implications if you're succesful?
Jul
29
comment Embedding bbpress forum in WP page
So you want to ajaxify the entire thing? This sounds like an attempted solution to a different problem ( this page isn't using a page template with a special forum header/footer is it? )
Jul
27
comment Modify default widgets
Can I ask what you're trying to do that needs a css class adding to the links?
Jul
27
comment Modify default widgets
To which link do you refer? Can you give an example?
Jul
26
comment How to remove the word “Navigation” from the top of the mobile main menu?
There's a lot missing form this question, such as the code that displays the navigation, what theme you're using, etc etc
Jul
24
comment Manually Create PHP Page For A Redirect
I'd recommend instead using javascript to do the check, it works better with caching mechanisms
Jul
24
comment cannot link a external url, present page url acting as parent url
If the answer is correct, you should mark it as accepted by clicking underneath the vote count on the tick so it goes green
Jul
24
answered Instead of using $post, how do i get the thumbnail image of the $post
Jul
20
comment WordPress keeps autoplaying my Youtube-Links no matter what I write
3rd party services would be more accurate, but I believe this is on topic since embedding Youtube videos is something Core supports. It is more of a user problem rather than a developer problem
Jul
20
answered WordPress keeps autoplaying my Youtube-Links no matter what I write
Jul
18
comment Adding avatars/gravatar to a Wordpress blog
You removed the comment author link and replaced it with the avatar function, and now your author link has vanished and been replaced with an avatar, I'd say that's why. If you want both, you need to output both. However that's a standard PHP printf question, not a WordPress question.
Jul
18
comment Override static home page post
Are the two pages (using page templates I assume ) completely different? What was the reasoning behind using page templates instead of using the built in home.php and front-page.php templates?
Jul
17
answered Adding avatars/gravatar to a Wordpress blog