主循環即The Loop
if ( have_posts() ) :
不需要循環的執行塊1
開始LOOP
while ( have_posts() ) :
the_post();
要循環的執行塊
endwhile;
不需要循環的執行塊2
else: 其他執行流程(提示沒有相關文檔)
endif;
個人建站知識管理
966 次瀏覽 分類: WordPress主題製作
主循環即The Loop
if ( have_posts() ) :
不需要循環的執行塊1
開始LOOP
while ( have_posts() ) :
the_post();
要循環的執行塊
endwhile;
不需要循環的執行塊2
else: 其他執行流程(提示沒有相關文檔)
endif;
Optimized by WPJAM Basic。