Support » Fixing WordPress » paged archive index?

  • mutedgirl

    (@mutedgirl)


    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:


    <h2>archives</h2>

    <?php
    $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!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘paged archive index?’ is closed to new replies.