Created
June 24, 2016 10:04
-
-
Save ingozoell/caed4e9383ef6e068f633e3721197779 to your computer and use it in GitHub Desktop.
Wordpress CPT 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
$loop = new WP_Query( $args ); | |
while ( $loop->have_posts() ) : $loop->the_post(); ?> | |
<?php endwhile; ?> | |
<?php wp_reset_postdata(); // reset the query ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment