WP Page will not display 'tags' (4 posts)

  1. dragonsjaw
    Posted 6 years ago #

    I have a WP Page that is using a template (for all archives) that already displays monthly and categories:
    '<h2 class="browse">By Month:</h2>

      <?php wp_get_archives('type=monthly'); ?>

    <h2 class="browse">By Category:</h2>

      <?php wp_list_categories('title_li=0'); ?>

    This works perfectly.

    I am trying to get one more line to display By Tag:
    <h2 class="browse">By Tags:</h2>

      <?php get_the_tag_list(); ?>

    I have used several different tag codes and nothing works.

    As this is a Page and there is not loop, is that why?
    But if that is the case why do the monthly and category work?


  2. dragonsjaw
    Posted 6 years ago #

    OK, using this:
    <?php wp_tag_cloud(); ?>

    I get a tag cloud. Now I must style it into a simple list!

  3. Jonas Grumby
    Posted 6 years ago #

    Seems like it would be a long list, which I guess is why people use

    <?php wp_tag_cloud('smallest=8&largest=22&'); ?>

    Maybe something here:
    Function Reference/get tags
    or maybe
    Function Reference/get the tags

  4. dragonsjaw
    Posted 6 years ago #

    yes it is a long list, which is just what I wanted in this one instance, for this one special archives Page.
    I wouldn't recommend using this in the sidebar LoL

Topic Closed

This topic has been closed to new replies.

About this Topic