• The “Older Posts >>>” link on my page isn’t functioning properly, and I’m not sure why. Instead of taking you to another page of posts, it either displays the same posts, or ends up at the home page. Please view the site [eliteathletic.com] and under the “Coach’s Column,” click the “Older Posts >>>” link to see what I mean. Here is my current code:

    http://pastebin.com/TF0y1MpY

    All of my posts are displayed using queries. Is there something I’m missing? I really can’t figure it out and I’m quite desperate, as this site is for a client.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Sounds like you have 1 or more poor custom queries that aren’t taking the paged variable into account.

    Thread Starter mtx212s

    (@mtx212s)

    And what would the fix for that be?

    Thread Starter mtx212s

    (@mtx212s)

    I guess I’m just not seeing what’s wrong. If you have time is there ANY way you could look at my code above and tell me what it needs to be so it works properly? I would greatly appreciate it as I am at a complete standstill with this. Thank you.

    Try changing:

    <?php query_posts('cat=3&posts_per_page=5'); ?>

    to:

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts('cat=3&posts_per_page=5&paged=' . $paged); ?>
    Thread Starter mtx212s

    (@mtx212s)

    Still isn’t working. Is there another line of code in a different .php file or something that has to be set up properly? Or some sort of setting of some sort that could be off? I’ve never had this problem before, I just can’t get it to work. Thank you for your time, I greatly appreciate it.

    Thread Starter mtx212s

    (@mtx212s)

    Any help?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘"Older Posts >>" link not working!’ is closed to new replies.