Created
May 26, 2014 16:13
-
-
Save nroca/bf978817bd02de6bd3e8 to your computer and use it in GitHub Desktop.
Wordpress custom post type loop
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 $cpt = new WP_Query('post_type=POSTTYPE&posts_per_page=-1'); | |
while ($cpt->have_posts()) : $cpt->the_post();?> | |
<?php endwhile; wp_reset_query(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment