您可以为前3篇文章设置不同的样式,而无需单独查询它们,您只需在通过内置current_post
变量。
while( have_posts() ):
the_post();
// are we on the first page and outputting one of the first 3 posts?
if( !is_paged() && $wp_query->current_post < 3 ):
// output full image, etc..
else:
// not first page and not first 3 posts
// output just thumb, etc..
endif;
endwhile;