Sidebar limiting to 10 posts?
Your problem is that you’re using query_posts(), when you need to be using WP_Query(). To display all posts (by ignoring pagination, use the posts_per_page parameter: $cat_query_args = array( // Include posts from category with ID $cat_id ‘cat’ => $cat_id, // Include all posts ‘posts_per_page’ => -1 ); $cat_query = new WP_Query( $cat_query_args ); if ( … Read more