Can somebody explain to me what the difference is between:
<? php if (have_posts()) : while ( have_posts() ) : the_post(); ?>
and
<? php if (have_posts()) { while ( have_posts() ) { the_post(); } } ?>
Can somebody explain to me what the difference is between:
<? php if (have_posts()) : while ( have_posts() ) : the_post(); ?>
and
<? php if (have_posts()) { while ( have_posts() ) { the_post(); } } ?>
You must be logged in to post a comment.
Besides the fact that you can’t have a space between the
<? php
…They’re both the same.The first is what’s referred to as the alternative syntax for control structures.
The full statements should look something like:
And…