Get the id of a category containing a certain word
-
Hello,
In the posts loop, which contains each ( post ) one or multiple categories, i would like to get the ID of a category contains a certain word.
For example, a post is in category “Red Car”, “Blue Car”, “Yellow Car”. I would like to get the id of the category containing the word “Red”, ie “Red Car” in the posts loop.
Or the id of the category “Truck Red” in another post loop.
Thanks for your help.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get the id of a category containing a certain word’ is closed to new replies.