paged archive index? (3 posts)

  1. mutedgirl
    Posted 10 years ago #

    I'd like to create a page - archives - that lists the last 60 entries sorted by post id, and then have that be paginated to show the next 60, then the next 60, and so forth. Is this possible? I've tried using the link_pages tag, but it doesn't seem to do the trick. Here's the code I have in the archives.php page template:


    $posts = get_posts('numberposts=60');
    foreach ($posts as $post) : start_wp(); ?>
    <div class="image_thumb">"><?php the_excerpt(); ?></div>
    <?php link_pages(); ?>
    <?php endforeach; ?>

    It lists the entries just fine.. but there's no pagination. I'm wondering if there is another way to go about doing this? Please help if you can! Thanks!

  2. jwurster
    Posted 10 years ago #

    I use sortable nicer archives to give the user the ability to sort the posts in many ways. You might want to take a look at that.

  3. moshu
    Posted 10 years ago #

    Or, you may want to try the solution described by Kafkaesqui here: http://wordpress.org/support/topic/38210?replies=14#post-215414

Topic Closed

This topic has been closed to new replies.

About this Topic