On a top level category page - when clicked I want it to display child level categories only (not grand-children). Each category has an image associated with it using the Category Images II plugin. I have also Meta data associated with the child categories using the Wp Category Meta plugin. I've got this code:
<?php
$currentcat = get_query_var('cat');
$categories=get_categories('parent=3');
if ($categories) {
foreach($categories as $term) {
echo '<div class="cat-holder">';
echo '<div class="image-holder">' . $term->ciii_category_archive_image .'</div>';
echo '<div class="cat-content">';
echo '<h2>' . $title . '<a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a>'. '</h2>';
echo '<p>' . get_post_meta ( $term->term_id, 'work_date', true ) . '</p>';
echo '</div>';
}
}
?>
which brings up only child categories for the Cat-3 parent, but I don't know the syntax in this form of PHP mark-up to retrieve the category image or the meta data for the categories.
Eventually I will also need to retrieve a linked list of of all grand-child categories associated with child categories - so users can either click the child category for an index of grand-child pages, or click directly to grandchild pages listed under child pages.