The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] post_type => array stopped working in 3.5.2 (2 posts)

  1. alvarix
    Posted 3 years ago #

    I have a query that grabs from posts various post types have a certain category. It worked in 3.5.1, but no more.
    Now it just returns posts for the last post type listed.
    Can anyone offer any guidance?

    global $post;
                      $args = array( 'numberposts' => 5, 'post_type' => array('press','news','tribe_events'), 'category' => '9' );
                      $myposts = get_posts( $args );
                      foreach( $myposts as $post ) :   setup_postdata($post);
  2. alvarix
    Posted 3 years ago #

    The events calendar plugin was the culprit.
    The upgrade to 3.0.2 solved it.

Topic Closed

This topic has been closed to new replies.

About this Topic