<?php
query_posts('category_name=news');
if (have_posts()) : while (have_posts()) : the_post();
if( get_the_tag_list() ){
echo $posttags = get_the_tag_list('<li class="jquery">','</li><li>','</li>');
}
endwhile; endif;
wp_reset_query();
?>
在制作wordpress主題時(shí),有時(shí)候會(huì)用到按分類(lèi)調(diào)用標(biāo)簽的時(shí)候,用上面的這一段代碼就可以解決。