WordPress.org

Ready to get started?Download WordPress

Forums

Next & Previous Posts Pagination using loop on page.php (3 posts)

  1. mawdizzle
    Member
    Posted 2 years ago #

    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

  2. Edward Caissie
    Theme Review Admin
    Posted 2 years ago #

    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.

  3. mawdizzle
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic