仅使用
query_posts(\'post_type=team-member&posts_per_page=2&paged=$paged\');
而不是
$wp_query = new WP_Query( array(
\'post_type\' => \'team-member\',
\'posts_per_page\' => 2,
\'paged\'=>$paged
) );
然后while循环为
if(have_posts()) while(have_posts()) : the_post();
而不是
<?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>