WordPress built-in method to extract array of term IDs?
I’m querying a custom taxonomy for a post, hoping to get a list of all terms for that post and taxonomy. get_the_terms($post_id, $taxonomy) works, but gives this ungodly array of term objects that will require an extra layer of parsing before I can run the following code: if (in_array($list_of_term_ids, $my_term_id)){ do good stuff… } I’m … Read more