I am having trouble understanding this code. I get the basics of the 'wordpress-loop' but I dont understand what some of this syntax. It almost looks like a ternary operator.
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><?php the_title() ;?></h1>
<?php the_content(); ?>
<?php endwhile; else: ?>
<p>Sorry, this page does not exist</p>
<?php endif; ?>
Specifically this line..
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
It is saying OK If there are posts, while we have posts, show the post? But what do the :'s signify.