WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have tried tons of examples and suggestion on this topic but I can not get them to work.

What I am trying to do is display the tags associated with the current post in a widget.

I have built the widget and the widget works fine but I can not write the code to query the posts tags and display them.

I understand the basics that needs to be done to get post meta from outside the loop but I can not pull the exact code together.

Can someone start me off by showing me a piece of code to get the current post tags and display them from outside the loop? I can handle making the output look fine.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.