返回文章列表的分页式导航。
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
the_posts_pagination();
else :
get_template_part( 'content', 'none' );
endif;
个人建站知识管理
963 次浏览 分类: WordPress主题制作
返回文章列表的分页式导航。
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
the_posts_pagination();
else :
get_template_part( 'content', 'none' );
endif;
Optimized by WPJAM Basic。