• Resolved essencious

    (@essencious)


    I’m working on a page template which has a section at the bottom of the page content called “Recent Projects”. This section will have it’s content pulled from the lastest two page from a particular parent page.

    I have used the below query to do this.

    query_posts(‘post_type=page&post_parent=22&posts_per_page=2&orderby=date’);

    This query works perfectly fine. However I want to be able to pagination “Recent Projects” like << 1 2 3 4 >>

    I’ve tried many many plugins already and nothing seems to appear. I tried using WP’s default pagination :

    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
    <div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
    <br style=”clear: both” />
    </div>

    The text oldest entries and newest entries appear however when I click it it doesn’t change to older “Recent Projects”.

    I’m wondering if there is a way to pagination a particular loop in WP?

  • The topic ‘Pagination of more than 1 loop’ is closed to new replies.