Withing the loop – it will display the post tags
$posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo ''.$tag->name .' '; } }
Outside of the loop – Which will display all of the post tags:
$tags = get_tags(); if ($tags) { foreach ($tags as $tag) { echo 'name ) . '" ' . '>' . $tag->name.' '; } }