I've recently edited my theme with high success, however now I am stuck. I have had very very little luck with the WP forum recently, so I have no idea if anyone can help.
I was re writing the archive template, which I didnt write myself in the first place. It works correctly except I cant work out how to limit the number of posts per page. It would seem the default for posts in the loop is 10, however I can't work out how to edit this either. Anyway, I successfully limited the number of posts on the home page with the query code
<?php $next_query = new WP_Query('showposts=6'); ?> <?php while($next_query->have_posts()) : $next_query->the_post(); ?>
I assumed the same would work in the archive template, however it displays posts by all authors rather than just the single author which the archive is on.
By removing the "$next_query->" sections forms the following code.
<?php $next_query = new WP_Query('showposts=5'); ?> <?php while(have_posts()) : the_post() ; ?>
Obviously this makes the query redundant, however shows the posts from the correct author. It also lists 10 posts rather than 5, making the site load slower
Any Ideas or help with this will be very apreciated.