I have a taxonomy for example “country” and I want to simply display the term in the side bar eg. New Zealand.
There is only one possible taxonomy per post so I don’t need to create a list or anything. Any ideas?
Leave a Reply
You must be logged in to post a comment.
Check the properties of
get_queried_object()
.Sample code:
Here is a screen shot for the archive of category Cat B from the test data:
To restrict the widget output to a taxonomy compare
get_queried_object()->taxonomy
with your registered taxonomy name.