Created
September 14, 2016 19:17
-
-
Save jpen365/1722218dd1bdce0254f0c9a58a9e785f to your computer and use it in GitHub Desktop.
The WordPress Loop at its most basic
This file contains hidden or 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() ) : while ( have_posts() ) : the_post(); ?> | |
/* insert post content here */ | |
<?php endwhile; else : ?> | |
<p><?php _e( 'Sorry, there doesn\'t appear to be anything here.' ); ?></p> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment