Replace with your post type and taxonomy query. WP Query :
<pre class="lang-php prettyprint prettyprinted"><span class="pun"><?</span><span class="pln">php $args </span><span class="pun">=</span><span class="pln"> array</span><span class="pun">(</span> <span class="str">'post_type'</span> <span class="pun">=></span> <span class="str">'my-post-type'</span><span class="pun">,</span> <span class="str">'tax_query'</span> <span class="pun">=></span><span class="pln"> array</span><span class="pun">(</span><span class="pln"> array</span><span class="pun">(</span> <span class="str">'taxonomy'</span> <span class="pun">=></span> <span class="str">'post-type-category'</span><span class="pun">,</span> <span class="str">'field'</span> <span class="pun">=></span> <span class="str">'slug'</span><span class="pun">,</span> <span class="str">'terms'</span> <span class="pun">=></span> <span class="str">'new-posts'</span><span class="pun">,</span> <span class="pun">),</span> <span class="pun">),</span> <span class="pun">);</span> <span class="com">// The Query</span><span class="pln"> $the_query </span><span class="pun">=</span> <span class="kwd">new</span><span class="pln"> WP_Query</span><span class="pun">(</span><span class="pln"> $args </span><span class="pun">);</span> <span class="com">// The Loop</span> <span class="kwd">if</span> <span class="pun">(</span><span class="pln"> $the_query</span><span class="pun">-></span><span class="pln">have_posts</span><span class="pun">()</span> <span class="pun">)</span> <span class="pun">{</span> <span class="kwd">while</span> <span class="pun">(</span><span class="pln"> $the_query</span><span class="pun">-></span><span class="pln">have_posts</span><span class="pun">()</span> <span class="pun">)</span> <span class="pun">{</span><span class="pln"> $the_query</span><span class="pun">-></span><span class="pln">the_post</span><span class="pun">();</span><span class="pln"> the_title</span><span class="pun">()</span> <span class="pun">;</span> <span class="com">// title</span><span class="pln"> the_excerpt</span><span class="pun">();</span> <span class="com">// excerpt</span><span class="pln"> the_post_thumbnail</span><span class="pun">();</span> <span class="com">// post thumbnail</span> <span class="pun">}</span><span class="pln"> wp_reset_postdata</span><span class="pun">();</span> <span class="pun">}</span> <span class="kwd">else</span> <span class="pun">{</span> <span class="com">// no posts found</span> <span class="pun">}</span></pre>