get_posts ignoring posts_per_page
-
In a function in a theme’s functions.php I have
$postslist = get_posts('posts_per_page=3'); echo count($postslist);
Why does it keep returning more than 3? How do I fix this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get_posts ignoring posts_per_page’ is closed to new replies.