I am reading, learning and experimenting with THE LOOP - using my Wamp localhost as the test area.
I am trying to develop a Page which will display a list of my existing pages.
I am struggling to understand 2 things:
1: When I use the standard loop:
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<? php if ( have_posts() ) : ?> <? php while ( have_posts() ) : the_post(); ?> <?php the_title();?> <?php the_time( 'D M Y');?> <? php endwhile; ?> <? php endif; ?>
My loop only returns 1 page (the current page)
When I use the Custom loop using:
<?php $myPosts = new WP_Query( 'post_type=page' );
The results are fine and show more than 1 page
2 The output with the custom loop is limited to 10 items, even though I have 30 published posts and pages - can someone tell me where to look to understand how to get all 30 to appear.