Forums

Pagination not working on custom template? (2 posts)

  1. ThreeVisual
    Member
    Posted 3 years ago #

    I'm using a custom page template with the following code, but when I press older or newer entries the page doesnt update (however it does change the URL)

    <ul>
    <?php query_posts('cat=11'); while (have_posts()) : the_post(); ?>
    <li>
    CONTENT
    </li>
    <?php endwhile; ?>
    </ul>
    
    <ul>
    <li><?php next_posts_link('&laquo; Older Entries') ?></li>
    <li><?php previous_posts_link('Newer Entries &raquo;') ?></li>
    </ul>

    Anyone know why it's not working properly and how I can fix this?

    (you can see the issue at http://www.wiredbristol.com/restaurants/)

    Thanks

  2. ThreeVisual
    Member
    Posted 3 years ago #

    OK, I've found a solution, for anyone else who would like pagination on custom templates check out this blog post on stylized web:

    http://stylizedweb.com/2008/08/13/query_posts-pagination-problem/#comment-15406

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.