title: Correct way to list multiple $query->set
body: <p>What is the correct way to list multiple $query->set ? Am I allowed to have multiple <code>$query-&gt;set</code> like "CODE A" below ?<br>
  Or am I supposed to combine them into one? If yes, how would you combine the three <code>$query-&gt;set</code> code? I tried combining them in "CODE B" below but it didn't work.</p>
  
  <p>.<br>
  <strong>CODE A: Before combine $query->set</strong>  </p>
  
  <p>This code goes in functions.php  </p>
  
  <pre><code>function featured_category( $query ) {
      if ( $query-&gt;is_home() &amp;&amp; $query-&gt;is_main_query() ) {
      $query-&gt;set( 'category_name', 'new' );
      $query-&gt;set( 'cat', '-60, -61' );
      $query-&gt;set( 'posts_per_page', 5 );
      }
  }
  add_action( 'pre_get_posts', 'featured_category' );
  </code></pre>
  
  <p>.<br>
  <strong>CODE B: After combine $query->set</strong>  </p>
  
  <p>This code goes in functions.php  </p>
  
  <pre><code>function featured_category( $query ) {
      if ( $query-&gt;is_home() &amp;&amp; $query-&gt;is_main_query() ) {
      $query-&gt;set( array( 'category_name' =&gt; 'new', 'cat' =&gt; '-60, -61', 'posts_per_page' =&gt; 5) );
      }
  }
  add_action( 'pre_get_posts', 'featured_category' );
  </code></pre>