Last active
December 15, 2015 21:50
-
-
Save leocristofani/5328991 to your computer and use it in GitHub Desktop.
The famous WordPress Loop, inspired by http://undercores.me starter template.
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 if(have_posts()) : ?> | |
<?php while(have_posts()) : the_post(); // start the loop ?> | |
<?php get_template_part('partials/content', get_post_format()); ?> | |
<?php endwhile; // end the loop ?> | |
<?php else : ?> | |
<?php get_template_part('partials/no-results.php'); // display "no posts found" message ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment