WP Category List
-
I’ve been reading threads similar to my questions for the past hour but I think I need to have it answered personally so I could understand it better. The problem is I’m developing a theme with a css drop down menu if I click a link from a specific parent category the top of the selected category it should list the other child categories in a nice horizontal menu. I found this reference earlier
$cat_id = get_query_var('cat'); wp_list_categories('orderby=id&title_li=&child_of=' . $cat_id);
I put this into my category.php file and it works but when I click into one of the child cats I want the list to stay there so the visitor could select another sub category if they choose. Is there something better to use other then what I put above?
I was also thinking maybe I could create different page templates for each category and register menus for each parent category to list its children so when I click the children the list stays the same I’m just looking for the easiest way to do it
- The topic ‘WP Category List’ is closed to new replies.