WordPress.org

Ready to get started?Download WordPress

Forums

Tags disappear (2 posts)

  1. Marpessa
    Member
    Posted 6 years ago #

    Hey I want to show only posts from a specific category in my index so i use this code:

    <?php
    if (is_home()) {
    query_posts('cat=22');
    }?>

    but then thhe tags disappear on the mainpage. I use this code to show tags above ecah post: <?php
    the_tags('',' &bull; ','
    ');
    ?>

    help please?

  2. palamedes
    Member
    Posted 6 years ago #

    the_tags() is used to display a link to the tag or tags a post belongs to. If no tags are associated with the current entry, the associated category is displayed instead.

    If you want the tag cloud for the whole site on the page use;

    http://codex.wordpress.org/Template_Tags/wp_tag_cloud

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.