Created
September 11, 2012 23:03
-
-
Save jlittlejohn/3702848 to your computer and use it in GitHub Desktop.
WP: Loop
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(); ?> | |
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> | |
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> | |
<?php the_content(); ?> | |
</div> | |
<?php endwhile; ?> | |
<div class="navigation"> | |
<div class="next-posts"><?php next_posts_link(); ?></div> | |
<div class="prev-posts"><?php previous_posts_link(); ?></div> | |
</div> | |
<?php else : ?> | |
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> | |
<h1>Not Found</h1> | |
</div> | |
<?php endif; ?> |
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(); ?> | |
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> | |
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> | |
<?php the_content(); ?> | |
</div> | |
<?php endwhile; ?> | |
<div class="navigation"> | |
<div class="next-posts"><?php next_posts_link(); ?></div> | |
<div class="prev-posts"><?php previous_posts_link(); ?></div> | |
</div> | |
<?php else : ?> | |
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> | |
<h1>Not Found</h1> | |
</div> | |
<?php endif; ?> |
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(); ?> | |
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> | |
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> | |
<?php the_content(); ?> | |
</div> | |
<?php endwhile; ?> | |
<div class="navigation"> | |
<div class="next-posts"><?php next_posts_link(); ?></div> | |
<div class="prev-posts"><?php previous_posts_link(); ?></div> | |
</div> | |
<?php else : ?> | |
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> | |
<h1>Not Found</h1> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment