Get category id by name ?
-
Hi.. i need to get the category ID by it’s name in the format: parent-category/category. For example: Images%2Fpaintings (images/paintings) and the get_cat_id or get_category_by_slug are not working in that case. I need to specify parent category as there are duplicate name of the categories.
P.S. At the moment i’m getting the current category structure from the
$query_string in the archive page.Thanks beforehand for any help…
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get category id by name ?’ is closed to new replies.