wordpress分类页调用当前分类所有子分类文章列表代码如下:
$cat,
'parent' => $cat,
'hide_empty' => 0
));
$c = get_category($cat);
if(empty($cats)){?>
文章稍后更新
$the_cat->cat_ID,
'numberposts' => 10,
));
if(!empty($posts)){
echo '
';
foreach($posts as $post){
echo '- '.mysql2date('Y-m-d', $post->post_date).'
'.$post->post_title.'
';
}
echo '
';
}
}}?>
可以将上面代码整合到自己的主题category.php文件中


