Reviews by Author
$args=array(
'child_of' => 18,
‘orderby’ => ‘name’,
‘order’ => ‘ASC’
);
$categories = get_categories($args);
foreach($categories as $category) {
echo ‘
‘ . $category->name . ‘
‘;
//echo ‘
Post Count: ‘. $category->count . ‘
‘;
$id = $category->cat_ID; //get_cat_ID($category->name);
$queryargs = ‘cat=’. $id . ‘&showposts=-1′;
query_posts($queryargs);
echo ‘
- ‘;
- ‘;
the_title();
echo ‘
while (have_posts())
{
the_post();
echo ‘
‘;
}
echo ‘
‘;
}
//Reset Query
wp_reset_query();
?>

There are 1 Comments to "Reviews by Author"