0

A new site i'm making is going to use extensive use of the categories, so here's what i'm trying to accomplish:

Main Category Name (Link)

List of Sub Categories (All Links)

When i'm on a sub-category page I want it to look like the Main Category page just with the sub-categories highlited.

Is that possible?

0

That's damn simple, see here: http://codex.wordpress.org/Function_Reference/get_categories . The sample downhere should work:

$kids = get_categories(array('child_of'=>get_query_var('cat'))); 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.