In a almost any archive related template, such as an author template, this just before your loop should work:
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts($query_string . '&posts_per_page=7&paged='.$paged);
?>
The template tag, previous_posts_link() and next_posts_link(), present the previous/next links, so look at the WordPress Default theme’s archive.php for examples.
Also see this plugin:
http://wordpress.org/extend/plugins/custom-post-limits/
Thanks very much!
The custom post limits fdid the trick.
WHowever I can’t seem to get the previious and next code to work. Right now I’ve put it in the loop here –
<?php endwhile; else: ?>
<p><?php _e('No posts by this author.'); ?></p>
<div class="navigation">
<p class="prev-post"><?php next_posts_link('« Older Entries') ?></p>
<p class="next-post"><?php previous_posts_link('Newer Entries »') ?></p>
</div>
<?php endif; ?>
but it doesn’t appear to display.
(see here: http://www.orbitbooks.net/author/alex-lencicki/ )
I’m pretty sure i have it in the wrong place, but can’t seem to suss out where it should be.
That’s because you’ve plaed it inside the else
condition, ie. when there are no posts.
Seperate this bit.
<?php endwhile; else: ?>
..into..
<?php endwhile; ?>
// PLACE CODE HERE
<?php else: ?>
See if that helps… 🙂
That did it! Thanks t31os!