17,189 reputation
31858
bio website tomjn.com
location United Kingdom
age 26
visits member for 4 years, 7 months
seen 45 mins 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


43m
comment Display Users and user url's
Can you edit your answer to explain how it helps? Currently it's the same as a where's wally game, the OP doesn't know what to look for
11h
comment Display Users and user url's
Have you considered using WP_User_Query?
11h
comment Delete useless pictures
As a side note, all of this assumes you're storing and saving images as attachments, setting their parent values correctly, and storing attachment IDs not image URLs ( all of which any sane code will be doing )
11h
comment Delete useless pictures
Your question's a little vague at the moment, perhaps if you asked several questions such as "How to delete attachments and images when the parent post is deleted?" or "How to delete all unattached attachments?" These would be useful questions that would help prevent and remedy your current situation, and attract a lot more attention. Start by editing your current question
13h
comment <?php echo $title ?> vs <?php echo esc_html( $title ); ?> Wordpress Security
Because some people DO use html in titles, and so its a legacy thing, you can't just break people's sites with new themes. Even then it gives sub optimal results. If you really must, use wp_kses on the title, otherwise mark up shouldn't be in titles
17h
comment How to add a date and time as wp category?
Can you clarify a little more what you mean? Are you talking about a taxonomy? Are you actually trying to implement date archives and are asking about a potential solution rather the original problem? Which post type are you talking about?
2d
awarded  Popular Question
2d
comment how do i make this loop work
How did it fix the code though? What was wrong with it?
Mar
27
answered Can I have two child pages of different parents with the same name?
Mar
27
comment Wordpress Disquis Comments Not Showing Profile Picture
That's not really possible, the whole point of things like disqus is that it's comments hosted by disqus, the same way facebook comments work etc
Mar
27
comment Wordpress Disquis Comments Not Showing Profile Picture
Of note: disqus.com/home/channel/discussdisqus/discussion/…
Mar
27
comment Wordpress Disquis Comments Not Showing Profile Picture
Avatars in WordPress are powered by gravatar, they're not stored in WordPress. Since Disqus doesn't come with Gravatar support, their official docs say the user has to create an account with Disqus, claim those comments as their own, and upload an avatar to Disqus. Then you will get your avatars. However, Gravatar is a 3rd party service, and so is Disqus, you need Gravatar/Disqus expertise to solve this, not WordPress expertise
Mar
27
comment Wordpress Disquis Comments Not Showing Profile Picture
Then why is disqus running on your website, and your question is talking about disqus comments? Disqus comments are not WordPress comments, and the missing avatars are because those users do not have Disqus avatars. Your WordPress users are not the same, and are using gravatar to grab avatars via their emails, they're two totally separate systems
Mar
26
comment Wordpress Disquis Comments Not Showing Profile Picture
Those users don't have avatars on disqus, remember those are not WordPress comments, they're loaded from Disqus. This is a disqus problem, not a WordPress problem
Mar
26
comment Get option saved by another theme
Another site in the same multisite install? Can you provide some context as to why you need this and what you're trying to do with it? What have you tried so far?
Mar
26
comment What is a good robots.txt?
It would be better practice to set an authors role to subscriber, instead of deleting all their content and jumping through loops for SEO purposes
Mar
26
answered Best practice for adding posts in bulk
Mar
26
comment Best practice for adding posts in bulk
We prefer precise/specific questions rather than vague ones, it's a Q&A site not a discussion forum, you need to be able to mark an answer as correct. If you need to ask multiple questions, you can create multiple questions
Mar
26
revised Best practice for adding posts in bulk
rewrote the question so it's to the point and isn't confusing. It was actually 2 questions were the first one was irrelevant
Mar
26
comment Best practice for adding posts in bulk
It is very tempting to edit this question down to these 9 words: "How do I bulk create posts from a csv?"