title: wordpress get post where category is not equal to blog
body: <p>i am trying to get the latest post which is not a blog . I know how to get a post by category name but how to get the post which is not equal to a specific category name . Here is the code i use to get for a category name </p>
  
  <pre><code>$query = array (
      'category_name' =&gt; 'Blog',
      'posts_per_page' =&gt; 1,
      'post_status' =&gt; array('publish')   
  );
  </code></pre>