the_tags show description
-
I have been trying to figure out how to show the tag’s description in the loop on my index.php page. I’ve made extensive use of Google with no solution yet.
My Code
<hgroup><?php the_tags('<h3>Authors:</h3><h2>','</h2><h2>','</h2>'); ?></hgroup>
Basic stuff. That works but when I try to add things below my tags don’t show up at all.
<?php if (is_tag()) { ?><?php echo tag_description(); ?><?php } ?>
<?php if (is_tag()) { ?><h2><?php echo tag_description(); ?></h2><?php } ?>
To sum up what I’m looking for. Show all tags’ description listed in a post below the tag. A format may look like this.
<h2>Tag 1</h2> <p>Tag 1 Description</p>
Anyone know about a plugin or any code that can help me?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘the_tags show description’ is closed to new replies.