WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. alvarix
    Member
    Posted 11 months 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
    Member
    Posted 11 months ago #

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

Reply

You must log in to post.

About this Topic