Forums

[resolved] Want popular tags to show on non-post pages (5 posts)

  1. sledgehammer
    Member
    Posted 2 years ago #

    I have tried to add this code to the page.php file to get the popular tags to show up on all my static, non-post pages. This code came from the single.php where the tags show up on all my blogs. Is it the right code? Where should it go on the page...What am I doing wrong?

    <?php if (get_the_tags()) { ?>
    <br /><span id="tags"><strong>Tagged as:</strong> <?php the_tags(''); ?></span>
    <?php } ?>
  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    That's the wrong code. It will only show tags assigned to that page/post. Try using wp_tag_cloud.

  3. sledgehammer
    Member
    Posted 2 years ago #

    that's what I am trying to accomplish...show tags assigned on my non-post pages. This is what they look like on my Post Pages.

    http://www.webmarketingoptions.com/making-web-videos-that-sell/

    I want the same thing for the tags assigned on my non-post pages. Which php file should the code (if that's the right code) go into and where should it go?

    Thanks!

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    WP pages don't have tags.

  5. sledgehammer
    Member
    Posted 2 years ago #

    OK...Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic