I have 6 posts with a custom post type in my Wordpress theme. I want to show them all on a page but I can only get a maximum of 3 to show up, regardless of how many there are.
I have this code in the page:
<?php $count_posts = wp_count_posts( 'cases' )->publish; echo $count_posts; ?> <?php query_posts('post_type=cases'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="post" style="display:inline;">case</div> <?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?>
...and it outputs this:
6 case case case
Why are my other 3 custom posts not showing up?
Thanks in advance