displaying tags in a widget

By what code you’ve posted, it seems like you’ve got a secondary loop set up (using a WP_Query object). So to display the current’ posts tags you can use:

  • the_tags – to print a list of the post’s tags
  • wp_tag_cloud – to print a tag cloud.
  • get_the_tags – to return an array of tag objects, which you can then use to display the tags however you’d like.