Created
November 7, 2012 17:01
-
-
Save melissacabral/4032974 to your computer and use it in GitHub Desktop.
Basic wordpress loop
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() ) : while ( have_posts() ) : the_post(); ?> | |
<!-- template tags and HTML go here, like this: --> | |
<h2><?php the_title(); ?></h2> | |
<?php endwhile; else:?> | |
<h2>Sorry, no posts found</h2> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment