Adding post tags

If you would like to add a list with the post tags in the single post page, you have to open the single.php file and add this line:

the_tags('', ' / ', '');

just after the line that includes the post template file. In our latest themes, this line should look like this:

locate_template( array( 'includes/post-template.php'), true, false );

and for older themes, this line should be like this:

include(TEMPLATEPATH . '/includes/single-blog.php');

For more information about the the_tags function, you can refer to its reference on the WordPress site:

http://codex.wordpress.org/Function_Reference/the_tags

 

Was this useful? 0