WordPress.org

Support

Support » How-To and Troubleshooting » Next & Previous Posts Pagination using loop on page.php

Next & Previous Posts Pagination using loop on page.php

  • I am using panaorama theme by themocracy.

    I have created a post “series” because I needed multiple posts to cover the topic I wanted to write about.

    I put the series on its own page and modified the page.php code with this code:


    } elseif (is_page(‘persian-letters-series’)) {
    query_posts(‘tag=persian-letters&order=ASC’);
    }; // END IF IS_PAGE

    I liked the idea of putting my categories in my menu bar and the code above is what I used for all the different categories. But, for my series, as you can see, I am focusing on one tag and ordering chronologically.

    This works (or I should say worked) fine until I exceeded 10 posts which is my post limit. Now my series ‘page’ is only showing 10 posts but I have more than 10 posts in that series.

    I’d like to have pagination for just this post series. I want WordPress to show 10 posts but provide a link to the next 10 posts in the query_posts(‘tag=persian-letters&order=ASC’); series.

    Does anyone know how to do this?

    URL: http://mawdizzle.com/series/persian-letters-series/

    Thank you thank you thank you!
    Matt

Viewing 2 replies - 1 through 2 (of 2 total)
  • Edward Caissie

    @cais

    Theme Review Admin, The JellyBeen Man

    Although it may be a great deal of work to revert your current method, you may want to have a look at this plugin: http://wordpress.org/extend/plugins/series/

    It seems you are trying to accomplish what it is designed to do.

    Ed,

    Thanks for the response.

    I’m hesistant to install too many plugins because I’m paranoid about them 🙂

    I ended up adding the arg ‘showposts=100’ to my queryposts function and that ‘kinda’ solved my issue. If I had too many posts, the pages could take longer to load, but that’s ok. Not too many people are using my website other than me 🙁

    I think I can find a better solution, but my band-aid solution will work for now.

    I guess I’d really like to be able to figure out how to show 10 posts and then have pagination for the remaining ones. I know it’s possible, I just have to figure it out.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Next & Previous Posts Pagination using loop on page.php’ is closed to new replies.