WordPress基于WP Query / get_posts 获取文章列表:

		
	<ul>
	<?php
		$args=array('posts_per_page'=>10,);
		$query = new WP_Query( $args );
		while ($query->have_posts()) : $query->the_post();
		 ?>
		<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
	<?php endwhile; wp_reset_postdata();?>
	</ul>