Skip to content

Instantly share code, notes, and snippets.

@mishterk
Last active May 14, 2021 07:04
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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/
<?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