Last active
May 14, 2021 07:04
-
-
Save mishterk/5c6ec1c2d506a81f8605e51fff0a72a5 to your computer and use it in GitHub Desktop.
Use PHP's alternative syntax for clearer WordPress templates. For more info see https://philkurth.com.au/tips/use-php's-alternative-syntax-for-clearer-wordpress-templates/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
get_header(); | |
?> | |
<div class="Main"> | |
<?php if ( have_posts() ): ?> | |
<?php while ( have_posts() ): ?> | |
<?php the_post(); ?> | |
<div class="Post"> | |
… | |
</div> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
</div> | |
<?php | |
get_footer(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment