根据wordpress指定标签,调用该标签下的文章。

<?php
$args=array(
'tag_id' => 1,
'posts_per_page' => 10,
);
//wodepress.org
query_posts($args);
if(have_posts()) : while (have_posts()) : the_post();
?>
<li>
//内容
</li>

<?php endwhile; endif; wp_reset_query();?>

最后更新日期: 2024:1:5:16:15