Last active
June 13, 2017 20:18
-
-
Save Drixled/17911d2cd25bea8a202dbef94add039c to your computer and use it in GitHub Desktop.
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 | |
$args = array ( | |
'post_type' => 'post-type', | |
'posts_per_page' => -1 | |
); | |
$query = new WP_Query( $args ); | |
?> | |
<?php while( $query->have_posts() ): $query->the_post(); ?> | |
[content] | |
<?php endwhile; wp_reset_postdata(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment