• I am building a blog and have decided that I would like to have a menu bar which links to specific topics of that one blog. This would be done by having each page display only posts with a specific tag.

    Lets say I only want posts with the tag “featured” to show up on the homepage. Is there a specific method to create these display restrictions?

    I would like to use this as a way to organize the site, while also making it easier for my client (who knows no html) to maintain it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You should be able to create a link to any term index by using the get_term_link() function. Here is a working example of this function for a tag with the name “Bunny”:

    <a href="<?php get_term_link( 'bunny', 'post_tag' ); ?>">Bunnies</a>

    As far as having posts with the “featured” tag show up on the homepage, please try using query_posts() before your loop in either index.php or home.php. Something like this should work:

    query_posts('tag=featured');

    Thread Starter presstheword

    (@presstheword)

    Thank you so much! I really appreciate this.

    No problem 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Display and separate posts by tags?’ is closed to new replies.