Answer the question
In order to leave comments, you need to log in
How do I get the taxonomy of a post?
Good evening.
The site displays a list of posts in a simple loop
while( $query->have_posts() ): $query->the_post();
. Posts have a country taxonomy where you can set the country for this post. Here's how to display the category (country taxonomy) of this post inside the loop?
I work with taxonomy for the first time, I read it on wp-kama and didn’t understand how to work with them at all.
Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question