Check if value is a custom taxonomy category name
Question
I’m needing to check a variable and if the slug doesn’t match a custom taxonomy’s category slug run a function. I can’t wrap my head around what I would need to do in order to get the “categories” of a custom taxonomy in an array and check them against a value.
All help is greatly appreciated.
0
categories, custom-taxonomy
7 months
0 Answers
86 views
0
Leave an answer
You must login or register to add a new answer .