Haha, yeah it's been a long way, let's see if I can sum it up, I think the way there will be clear one's the goal is..
You've helped me to list the descriptions of a category's sub-category's while on a category page. Each description links to that sub-category, so far it's pretty straight forward right?
The last issue is that ones you click on a sub-category's description, you go to that sub-category and then the list of descriptions disappear.
I'd like the same list of descriptions that appears on the category page to appear on the sub-category.
Here's the part of my sidebar.php that isn't working, maybe it'll make it more clear to you.
Thanks again for taking your time!
<div id="left_column">
[...]
<div id="menu">
<ul>
<?php /* If this page displays an Author Archive */ if ( is_author() ) { ?>
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name); // NOTE: 2.0 bug requires get_userdatabylogin(get_the_author_login());
else :
$curauth = get_userdata(intval($author));
endif;
?>
<h2 class="menu_header"><?php echo $curauth->display_name; ?></h2>
<?php echo $curauth->user_email; ?>
<?php echo $curauth->jabber; ?>
<?php echo $curauth->description; ?>
<? } /* If this page displays a Parent Category */ elseif ( is_category(illustration) || is_category(graphics-design) || is_category(photo) || is_category(styling) || is_category(pattern) ) { ?>
<h2 class="menu_header">Lula Members</h2>
<?php
$cat = get_query_var('cat');
$categories=get_categories('child_of='.$cat);
if ($categories) {
foreach($categories as $term) {
echo '<a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View %s" ), $term->description ) . '" ' . '>' . $term->description.'</a>';
}
}
?>
<? } /* If this page displays any other Category */ elseif ( is_category() ) { ?>
<h2 class="menu_header">Lula Members</h2>
<?php
$cat = get_query_var('cat');
$categories=get_categories('child_of='.$cat);
if ($categories) {
foreach($categories as $term->parent) {
echo '<a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View %s" ), $term->description ) . '" ' . '>' . $term->description.'</a>';
}
}
?>
<? } else { ?>
<h2 class="menu_header">Lula Members</h2>
<?php wp_list_authors('show_fullname=1&optioncount=0&exclude_admin=1'); ?>
<?php } ?>
[...]
</ul>
</div>