wp_query – nopaging – how to?
-
$args=array( ); $wp_query = new WP_Query($args);
Im looking for the right parameters to sets a new WP_Query in that way, that it gets all the posts for the current $query_string. I can’t use the global wp_query as it contains only a maximum of 10 posts (the max number is set to 10 in my wordpress read-settings). I guess I need to set ‘nopaging’ => ‘1’, and stick the new query to the global $query_string. Or am I completely wrong? So far I haven’t managed to get it work.
Any clues?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘wp_query – nopaging – how to?’ is closed to new replies.