Trouble with paginating an archive page in wordpress


Staff member
Im trying to make an archive page in wordpress that works. Im trying to have the archive page show all posts in a list, but i dont want a list that is 100 list items long. So im trying to figure out how to get it to make a second, third, fourth, etc... page after about 20 to 30 list items on one page.

I dont mind using the wp-paginate plug in, but im still not sure how to get that to work with

I dont think it matters, but i will have a search bar on the page and its through google custom search. So i didnt supply it, as i dont think it contributes to the actual issue.

Any help would be greatly appreciated!

Template Name: Archives
get_header(); ?>
<div id="main">
    <div id="posts">
        <?php the_post(); ?>
        <h1 class="entry-title"><?php the_title(); ?></h1>

             <?php wp_get_archives( 'type=postbypost' ); ?>

        <?php wp_link_pages(); ?>

        <?php rewind_posts(); ?>

<?php get_sidebar(); ?>
<?php get_footer(); ?>