Trouble with paginating an archive page in wordpress

admin

Administrator
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
Code:
wp_get_archives()

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!

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

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

        <?php wp_link_pages(); ?>

        <?php rewind_posts(); ?>
    </div>
</div>

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