<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
Kullanımı sırasında while(have_posts())
, ben işe yaramaz hissediyorum. Ilk if(have_posts())
bloğunu kontrol edip bir yazı var, süre koşulu yoktur herhalde. Hiçbir post varsa, program döngü dışarı gidiyor. bir yazı varsa, o zaman idam the_post()
. Herhangi bir ipucu mutluluk duyacağız.