Thread Starter
crizon
(@crizon)
Has nobody an idea how to solve this problem?
It really is a roadblock for me right now.
Thread Starter
crizon
(@crizon)
I thought that one is used to check if a post is in a certain category. I’d like to check if the currently displayed category is the child of a certain parent-category.
The relevant code for my sidebar:
<?php if (is_category(‘Design’) {
wp_list_cats(‘child_of=7&optioncount=0’);
} elseif (is_category(‘Media’)) {
wp_list_cats(‘child_of=8&optioncount=0’);
} elseif (is_category(‘Work’)) {
wp_list_cats(‘child_of=9&optioncount=0’);
} else {
wp_list_cats(‘sort_column=name&optioncount=0&hierarchical=0&list=1’); } ?>