Like the title says, what code would I use on a wordpress page so that it will only show posts that have a specific tag?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
I'm pretty sure I always read on here that
And in your function.php you will need to clear out the transient when things are updated:
|
|||
|
|
|
Before the loop, use query_posts function
This will returns all posts with the assigned tag.
You can also use it to return posts with multiple tags
For further parameters and reference, see http://codex.wordpress.org/Class_Reference/WP_Query#Parameters http://codex.wordpress.org/Function_Reference/query_posts |
|||||||||||||
|