How can I get a list of tags relevant to a post on a “single” or “tag” post page for use in a widget on that page?
I have posts that are tagged and based on what the post is tagged I want the widget to perform a query to display stats and using the tag as a parameter.
So, if the post is tagged “yellow” and the site is displaying either the posts tagged as “yellow” or a single post tagged “yellow” I want to program the widget to get that tag and use it as a parameter in a database query. The widget will then display the results of that query and the rest of the page will render.
In some cases I’ll want to exclude tags if it means getting the tag I want.