Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WP_Query syntax to easily pull down for use in ST2
<?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
You can’t perform that action at this time.