get posts is not working properly
-
I am using the get_posts function to return a number of post in a specific category. I simply cut and paste the example from the codex into my webpage and changes the number of posts and the post category. It returns posts but does not return ALL of the posts. It only wants to return 6 posts. When i try to use numberposts and set it to like 1 or 2 it will ignore that as well and still return 6 posts. Not sure what is wrong. I have about 20 posts in this category so it should be returning all of them if i put numberposts to 20. Any suggestions?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get posts is not working properly’ is closed to new replies.