• Resolved Workshopshed

    (@workshopshed)


    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)
Viewing 1 replies (of 1 total)
  • The topic ‘get_posts different count to expected’ is closed to new replies.