Skip to content

Instantly share code, notes, and snippets.

@cerebrl
Created July 14, 2013 21:58
Show Gist options
  • Save cerebrl/5996283 to your computer and use it in GitHub Desktop.
Save cerebrl/5996283 to your computer and use it in GitHub Desktop.
Custom WP Loop for Multiple Loops per Page
<?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