Created
May 16, 2014 09:55
-
-
Save erezLieberman/388f2c4e6edea2b07ded to your computer and use it in GitHub Desktop.
basic 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(); ?> | |
| <!-- loop code here --> | |
| <?php endwhile; else: ?> | |
| <!-- code if there isn't content here --> | |
| <?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment