title: How do i get all post by categories in Wordpress
body: <p>** I want to get post by categories in WordPress**</p>
  <pre><code>    $args = array('post_type' =&gt;  'project' ); 
  $postslist = get_posts( $args ); 
  </code></pre>