How to display tags in WordPress 2.3

closeThis post was published 2 years 7 months 2 days ago.
Therefore, it is likely to be outdated and may no longer be valid.

WordPress 2.3 allows you to tag posts.

In the theme I use, to display the tags on your blog’s post you need to edit your ‘single.php’ file.

Log in to your WordPress dashboard then select Presentation > Theme Editor

Select the ‘single.php’ file from the right-hand sidebar.

Locate the following line of code (it’s located just after <!--Post Meta-->):

<!--<?php if (function_exists('the_tags')) { ?><strong>Tags: </strong><?php the_tags('', ', ', ''); ?><br /><?php } ?>-->

The HTML comment tags ‘<!---->‘ (at the begining and end of this line) need to be deleted (these tags comment out code thus preventing it being read in a browser).

Finally, click the ‘update file’ button then refresh your site to view your tags (assuming you’ve added tags your posts).

Like most things, it’s easy when you know how.

This entry was posted in DoIT, WebDev and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>