wordpress PHP syntex ?? what kind of php syntex is this ?
Posted: Sun May 29, 2016 8:40 am
Hey guys i was just going thorugh the syntex for php used in wordpress and it looks like below:
I saw the above code when i was just going through this tutorial vedio here https://www.youtube.com/watch?v=AShql_A ... i5&index=4.
is that some custom php syntax ? or something thats only done in wordpress ?
Thank you.
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.