WordPress Clear Line Theme – Display Tags not Categories

19 Jan 2012

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
comments powered by Disqus

  « Previous: Next: »