I'm trying to get a list of all posts within a category.
From the looks of things I should be using get_posts to do this, but it simply will not let me specify both numberofposts and the category.
Here's my code:
$args = array('numberposts' => -1, 'category' => 5); $catPosts = get_posts( $args ); echo count($catPosts); // -> 6! there should be 12!
If I just put numberofposts ion the args then I get all posts in all categories. Specifying a category for some reason ignores my numberofposts.
Anyone know what's going on?