title: How do I call a WordPress Category, using '$args = array ()'
body: <p>In the interest of making my code as readable as possible, I have structured some coding as follows:</p>
  
  <pre><code>$args = array (
      'type' =&gt; 'post',
      'posts_per_page' =&gt; 1,
      'offset' =&gt; 1,
      'category_name' =&gt; 'news',
      );
  
  $lastBlog = new WP_Query($args);
  </code></pre>
  
  <p>Does anyone see a problem with this coding?  For some reason, my 'category_name' argument is not being recognised and causing the whole code to not be recognised.  As a method of elimination process, I removed the 'category_name' => 'news', statement and the remaining coding then become recognised.</p>
  
  <p>Any suggestions on where I am going wrong?  I have also tried targeting category ID but still run into the same issue.</p>
  
  <p>Thanks.</p>
  
  <p>Craig</p>