Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 515 Bytes
<snippet>
<content><![CDATA[
/*
* Sets up The Loop with query parameters.
* codex: https://codex.wordpress.org/Class_Reference/WP_Query
*/
query_posts( \$args = array(
'posts_per_page' => -1,
'post__not_in' => array(),
'offset' => 0,
'cat' => 2,
'category_name' => ''
)
);
while ( have_posts() ) : the_post();
/* The content goes here */
endwhile;
wp_reset_query();
?>
]]></content>
<tabTrigger>query_posts</tabTrigger>
<scope>source.php</scope>
</snippet>