Can’t find info on this anywhere in Codex or forum. On a category archive page for a parent category, I want to display in a line of links the child categories for that parent category.
I even tried brute force, grabbing the cat= value from the query string (e.g. $catID = $_GET[‘cat’];) but that doesn’t appear to work when running mod_rewrite.
If I’m not mistaken, I can run wp_list_categories but I need the category parent id. That’s the piece that I need to know how to get it within the WP system.
Thanks for any ideas!
- The topic ‘Capture Category ID on Category Archive Page?’ is closed to new replies.