title: Limit the amount of custom posts being shown
body: <p>Trying to limit the (custom post-type-content) being displayed on my frontpage, limited to just the newest 6 &amp; 12 posts respectively for the 'injuries section' and 'services section'. From respective archives.</p>
  <p>The code below works perfectly pulling in the data from each archive, but my attempt to limit the posts being shown to 6 and 12 doesn't.</p>
  <p>Appreciate your time explaining where I'm going wrong.</p>
  <pre><code>    &lt;?php
          // Injuries Custom Post Links 
          $args_injuries = array(
              'post_type' =&gt; array('injuries'),
              'post_status' =&gt; 'publish',
              'limit' =&gt; '6'
          );
          // Services Custom Post Links 
          $args_services = array(
              'post_type' =&gt; array('services'),
              'post_status' =&gt; 'publish',
              'limit' =&gt; '12'
          );
          $loop1 = new WP_Query($args_injuries);
          $loop2 = new WP_Query($args_services);
      ?&gt;  
      &lt;?php if ( $loop1-&gt;have_posts() ) : while ( $loop1-&gt;have_posts() ) : $loop1-&gt;the_post(); ?&gt;
          &lt;div class=&quot;tile&quot;&gt;
              &lt;?php get_template_part('includes/front', 'page-injuries-content'); ?&gt;
          &lt;/div&gt;
      &lt;?php endwhile; endif; ?&gt;
      &lt;?php if ( $loop2-&gt;have_posts() ) : while ( $loop2-&gt;have_posts() ) : $loop2-&gt;the_post(); ?&gt;
          &lt;div class=&quot;tile&quot;&gt;
              &lt;?php get_template_part('includes/front', 'page-services-content'); ?&gt;
          &lt;/div&gt;
      &lt;?php endwhile; endif; ?&gt;
  </code></pre>