title: Wordpress if post or blog category statement
body: <p>got a little problem here on Wordpress.</p>
  
  <p>I am trying to use PHP to check whether the page I am on is a category page or a post page if it isn't on either it will do something else nothing.</p>
  
  <p>The code I have is:</p>
  
  <pre><code>&lt;?php if( (!is_category($category)) || (!is_single($post)) ) { ?&gt;
  
  Do something...
  
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>When I try it without the or the category bit works fine. When I join them together the code stops working.</p>