Get the the top-level parent of a custom taxonomy term
How would I get the top-level parent of a given term? I am using wp_get_object_terms to get taxonomy terms on posts, but instead of showing all tagged terms, I only want to show tagged terms’ top-level parents. So if these are my selected terms, I only want to show Breakfast, Lunch and Dinner. x BREAKFAST … Read more