Home Forums General Issues Check For Taxonomy Selection


Check For Taxonomy Selection

  • Hi,
    I’ve been trying to figure out if there is a way to check if a specific term was selected from a list of terms in a taxonomy selection field.

    For instance, I have a custom taxonomy called furniture with terms like chair, table, coach, etc. In my code I want to check if one of these terms is selected and do something. I think the real trick is that multiple terms can be selected.

    I assume I would have to loop through the terms and check against a specific value to see if it’s present? Any help would be much appreciated!


  • Is this on the front-end or backend? Could you check against has_term() or $_POST?

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Check For Taxonomy Selection’ is closed to new replies.