• Hello Guy

    I want to display post with selected multiple category. here my current code

    $args2 = array('post_type'=>'product','numberposts'=>-1,'orderby'=>'rand', 'category' => 'INDICATOR',);
      $myProducts = new WP_Query( $args2 );

    here u see i can use only one category. but want to select multiple category also my other parameter

    Please help me how can i do that.

  • The topic ‘How to get multiple category with other parameter in WP_Query’ is closed to new replies.