返迴文章列表的分頁式導航。
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;
個人建站知識管理
1,183 次瀏覽 分類: 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。