Forums

[resolved] Older posts link shows most current posts (2 posts)

  1. lucasstarbuck
    Member
    Posted 3 years ago #

    Hey out there,
    I've developed a custom theme for my site, and I've hit a snag.
    I'm selecting posts by category, using query_posts('category_name=design')
    and when I hit the 'Older Posts' link, it just displays the same 10 posts at the first page. It's obviously not recognising that I need the 10 older ones.
    Any ideas? I'm also using a plugin to include a page, which may affect the solution.

    The code for the page is available at
    http://www.lucas-starbuck.com/design.txt

    Thanks for any help/suggestions!
    Lucas

  2. lucasstarbuck
    Member
    Posted 3 years ago #

    Fixed it!!!
    For anyone wanting to reference it, I'm now using

    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("cat=5&showposts=10&paged=$page");

    instead of
    query_posts('category_name=design')

    Hope this helps people out there!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.