WordPress Clear Line Theme – Display Tags not Categories

The WordPress Clearline theme displays categories not tags for posts, and doesn’t have a way of modifying it’s behaviour through the settings area. This is easily fixed with a one line code change:

Edit the file /var/www/wp-content/themes/clear-line/functions.php, and at approximately line 340 replace:

<?php the_category(', '); ?>

with this:

<?php the_tags('', ', '); ?>

The path to the functions.php file may be slightly different on your server; you can quickly locate it using find:

find / -type f -name functions.php 2> /dev/null


Share This


 


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>