title: wordpress - leave out multiple categories in a new wp query
body: <p>I have a new wordpress query like this:</p>
  
  <pre><code>$query = new WP_Query( array( 'posts_per_page' =&gt; 10, 'cat'=&gt;-5, 'paged'=&gt;$paged ) );
  </code></pre>
  
  <p>Now I want to exclude a second category but I can't seem to get the syntax right. I have tried:</p>
  
  <pre><code>$query = new WP_Query( array( 'posts_per_page' =&gt; 10, 'cat'=&gt;array(-5,-3), 'paged'=&gt;$paged ) );
  </code></pre>
  
  <p>which I thought might work but throws and error and so makes me wonder if 'cat' is the right variable.</p>
  
  <p>and this (which just didn't feel right!)</p>
  
  <pre><code>$query = new WP_Query( array( 'posts_per_page' =&gt; 10, 'cat'=&gt;-3,-5, 'paged'=&gt;$paged ) );
  </code></pre>
  
  <p>How can I add in a second excluded category please</p>