tags:

views:

34

answers:

2

This works pretty good except it is limited to 10 posts since my blog is set to show 10 posts maximum.

   $featured_query = new WP_Query('cat=3');

        while( $featured_query->have_posts() ){
         $featured_query->the_post();
         $postcount++;
            ...

How can I override that setting and get ALL posts in that category regardless of the maximum posts setting?

A: 

Does query_posts('cat=3') do what you want?

Jared
no, same issue exists
Tony
Fair enough, the -1 parameter is needed--I didn't know that one either
Jared
+1  A: 

Use showposts=-1. This will override the defaults posts setting. Per this: http://codex.wordpress.org/Template_Tags/query_posts#Post_.26_Page_Parameters

Chacha102
awesome, thanks. i was actually reading that page but I missed that little point.
Tony