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 } ?>
That's the wrong code. It will only show tags assigned to that page/post. Try using wp_tag_cloud.
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!
WP pages don't have tags.
sledgehammer
Member
Posted 2 years ago #