Created
July 14, 2013 21:58
-
-
Save cerebrl/5996283 to your computer and use it in GitHub Desktop.
Custom WP Loop for Multiple Loops per Page
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 | |
/* Pull in the custom post type */ | |
$NEW_query = new WP_Query('post_type=POST-TYPE-NAME'); | |
while ($NEW_query->have_posts()) : $NEW_query->the_post(); ?> | |
<?php get_template_part( 'your/template/part/dir', get_post_format() ); ?> | |
<?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment