I think what you’re looking for is get_the_terms
, which you can specify a post ID and a taxonomy to retrieve the terms attached to it.
I think what you’re looking for is get_the_terms
, which you can specify a post ID and a taxonomy to retrieve the terms attached to it.