WordPress.org

Support

Support » How-To and Troubleshooting » Tags disappear

Tags disappear

  • 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?

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)
  • The topic ‘Tags disappear’ is closed to new replies.