I'm moving from ExpressionEngine to WP, so some of this is new to me.
Here's what I'm trying to accomplish.
I have a parent category of "Rolodex", with around 80 child categories. I want the Rolodex page to have a different format than the rest of the site. I copied the category.php page, renamed it category-rolodex.php and styled it the way I want it. On that page, I can get a list of just the child categories for the Rolodex parent by using this code:
<?php
if (is_category( )) {
$cat = get_query_var('cat');
$parent = get_category ($cat);
if ($parent->rolodex) {
wp_list_categories ('title_li=&child_of=' . $parent->rolodex);
} else {
wp_list_categories ('title_li=&child_of=' . $cat);
}
}
?>
However, when I click on any of the child categories, it takes me to the default category page, which looks different than my customized page. Not sure what I'm doing wrong, but is there a way to have the child categories link back to the custom category page for the parent Rolodex?
Thanks!