Created
August 7, 2012 21:35
-
-
Save asimpson/3289584 to your computer and use it in GitHub Desktop.
WP_Query syntax to easily pull down for use in ST2
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 | |
$query = new WP_Query( 'params' );//http://codex.wordpress.org/Function_Reference/WP_Query | |
while($query->have_posts()) : $query->the_post(); | |
//content goes here | |
endwhile; | |
wp_reset_postdata(); // reset the query |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment