How to get Custom Taxonomy ID from the post ID

Question

In my setup, I have two custom taxonomy called Regions & Sections.
All the post in site can either be from region taxonomy or from section taxonomy.

At certain point outside the loop I have the post details and I need the taxonomy ID. I don’t have the taxonomy name at that point to use get_the_terms function.

Any help will be very appreciated.

0
TCG02 3 years 2020-03-27T12:51:26-05:00 0 Answers 101 views 0

Leave an answer

Browse
Browse