Reviews by Author

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 ‘

‘;
}
//Reset Query
wp_reset_query();
?>

One reply on “Reviews by Author”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s