the loop, explained, by someone, do not get syntax
-
Can someone break down this php for me:
if (have_posts()) : while (have_posts()) : the_post();I do not at all understand it, I pulled it right out of a current download from the default template.
I see this one in the middle:
<?php endwhile; else: ?>And then this:
<?php endif; ?>I assume the last one is just a throwback to old php, and can be replaced with }
But the rest, honestly, I have never seen that syntax.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘the loop, explained, by someone, do not get syntax’ is closed to new replies.