سلام،
می خواستم بپرسم چطور میشه یه حلقه loop در php مثل وردپرس ایجاد کرد:
if ( have_posts() ) :
while ( have_posts() ) : the_post();
// The loop code
endwhile;
else :
echo 'Sorry, no posts were found';
endif;
توابع have_posts و the_post رو چطور باید نوشت؟