Hi...
I have searched the forums and it just seems nothing helps! So someone please help!! I have a bunch of caregories with children, grand children, and even more grand children.
I have used a plugin to stop a child categories' posts to display in its parent category aswell. Which works fine...
But now the parent category is empty and contains no information. So I would like to display the current categories children on the page. I dont have a category.php so my archive.php is being used for the display of categories.
I have tried using this...
<?php
if (is_category()) {
$cat = get_query_var('cat');
$parent = get_category ($cat);
if ($parent->parent) {
wp_list_categories ('child_of=' . $parent->parent);
} else {
wp_list_categories ('child_of=' . $cat);
}
}
?>
but it only displays that current categories title and link!
Please help!!
Pleeeeeeeeeeeeaaase!!!!