Get tags of WordPress post outside the loop

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

   if (is_single()) {
      foreach(get_the_tags($post->ID) as $tag) { echo $tag->name . ', '; }

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …

Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us