How to Display Post Tags in Wordpress Blogs? | TeChZeNe

How to Display or Show Post Tags in WordPress Blogs?

Post Tags, a real good feature of WordPress when compared to blogger. The good thing about these post tags is that Google also indexes the tags along with other links i.e., it treats the tags as links.

Many a times wordpress templates come up with in-built feature to show either individual post tags or “tag cloud” in the single post pages. But some themes (like techzene.org) by default do not come with showing post tags on single post pages. In such cases, we should add the script manually to our template to enable showing the wordpress post tags.

Add any one of these following codes to your “single.php” file with in The Loop. [You'll find "single.php" in "Editor" tab under "Appearance" Menu]

  1. Option A : To Separate Tags by Comma
  2. <p><?php the_tags(); ?></p>

  3. Option B : To Separate Tags by Arrows

    <?php the_tags(‘Social tagging: ‘,’ > ‘); ?>

  4. Option C : To Show tags as lists

    <?php the_tags(‘<ul><li>’,'</li><li>’,'</li></ul>’); ?>

Don’t forget to back up your template before you make any changes (Just in Case).

Incoming search terms:

Posted by on May 18th, 2011 under Wordpress Tips Category 2 Comments
 

Share This Article

Get Free Email Alerts

Stay Updated with Latest Technology. Get Free Email Newsletter Updates..

And, Next Confirm Your Email Subcription

   

2 Comments to “How to Display or Show Post Tags in WordPress Blogs?”

  1. Vivek says:

    Thanks for the tip

    [Reply]

  2. daniel says:

    Hey thanks a lot

    [Reply]

Leave your comment here:

 

 
Follow Our Updates TechZene Feeds Twitter on TechZene Subscribe to Updates TechZene Facebook Fanpage