要在循环中包括帖子和页面,请使用“post\\u type”参数:
<?php
$wp_query = new WP_Query();
$args = array(
\'post_type\' => array(\'post\',\'page\')
);
$wp_query->query($args);
while ($wp_query->have_posts()) : $wp_query->the_post();
?>
<?php the_content(); ?>
<?php endwhile; ?>
http://codex.wordpress.org/Class_Reference/WP_Query