Skip to content

Instantly share code, notes, and snippets.

@alexadark
Created November 9, 2013 10:32
Show Gist options
  • Save alexadark/7384112 to your computer and use it in GitHub Desktop.
Save alexadark/7384112 to your computer and use it in GitHub Desktop.
Wordpress: loop
<?php if(have_posts()) : while (have_posts()) : the_post(); ?>
<?php endwhile; else: ?>
<p>There are no posts or page here</p>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment