I need to display the latest post with a specific tag.

Example: User tags a post 'featured', but forgets to untag earlier posts.

So I want to ensure that the latest post tagged 'featured' is what displays on other sites.



You can actually find extensive documentation on wordpress.org.

But let's have a look at this particular example:


The 5 in there is the number of posts you want returned. The 3 is the id of the tag you want to limit the posts too.

If you want to limit to a category use categories instead. But you'd have figured that out yourself after looking at the documentation, right? ;-)

  • Fantastic, thanks! Yup. .I am going straight to the documentation :) – rootl May 17 '17 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.