Inspiration For Creative Minds
Home » Labs » Get tags of WordPress post outside the loop  

Filed under Labs

If you want to display tags from a WordPress post outside the loop, then add below code to your theme.

 
<?php
   if (is_single()) {
      foreach(get_the_tags($post->ID) as $tag) { echo $tag->name . ', '; }
      }
?>
It's only fair to share...Share on Google+Tweet about this on TwitterShare on Facebook
Labs

Posts you may like: