Title: get_posts different count to expected
Last modified: August 21, 2016

---

# get_posts different count to expected

 *  Resolved [Workshopshed](https://wordpress.org/support/users/workshopshed/)
 * (@workshopshed)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get_posts-different-count-to-expected/)
 * I’m using get_posts with a several parameters and it’s not bringing back the 
   posts I’d expect. Has the behaviour of this function changed between 3.6 and 
   3.7 such as defaults or something else?
 * `$loadedposts = get_posts(array('meta_key' => 'blogger_blog', 'meta_value' =>'
   somebeans', 'posts_per_page' => 20, 'offset' => 0, 'post_status' => array('draft','
   publish','future')));`
 * I’ve still to check this down to the SQL level and to see if another plugin is
   interfering but given that the default is no filtering I don’t see how it should.
 * Any thoughts?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Workshopshed](https://wordpress.org/support/users/workshopshed/)
 * (@workshopshed)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get_posts-different-count-to-expected/#post-4260148)
 * My fault, the other 5 posts were in the trash.

Viewing 1 replies (of 1 total)

The topic ‘get_posts different count to expected’ is closed to new replies.

## Tags

 * [get_posts](https://wordpress.org/support/topic-tag/get_posts/)

 * 1 reply
 * 1 participant
 * Last reply from: [Workshopshed](https://wordpress.org/support/users/workshopshed/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/get_posts-different-count-to-expected/#post-4260148)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
