Code: Select all
if (have_posts()) :
while (have_posts()) : the_post(); ?>
<article class="post">
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
</article>
<?php endwhile;
else :
echo "<p>No content found</p>";
endif;
is that some custom php syntax ? or something thats only done in wordpress ?
Thank you.