$wpq = array (‘taxonomy’=>’category’,’term’=>’batteries’);
$myquery = new WP_Query ($wpq);
$article_count = $myquery->post_count;
echo “
$myquery = new WP_Query ($wpq);
$article_count = $myquery->post_count;
echo “
- “;
- “.$post->post_title.”
if ($article_count){
while ($myquery->have_posts()) : $myquery->the_post();
echo “
“;
endwhile;
}
echo “
“;