today i need to get all the posts from a specific category on wordpress.
The code it’s pretty basic, and it’s like that:
print_r(get_posts(array('numberposts' => -1, 'category' => 3)));
The id of the category it’s obviously 3.
But i receive always the last 5 posts of that category, not all the post present there (something like 60posts).
Anyone know why could happen this strange stuff?
Try something like this:
If this works for you, all you need to do then is to change the output display(the ul and li)