Support » Fixing WordPress » Category Older Posts Link Broken

  • mwsmedia

    (@mwsmedia)


    Hi gang. Over at http://www.retroland.com, we’re having issues with “Older Posts / Newer Posts” working correctly on Category pages. The issue is very simple: clicking, for example, http://www.retroland.com/food/page/2/ results in being returned to the Home page.

    I’ve eliminated potential plugin issues, so that’s not it. Any ideas?

    Happy to provide more info if necessary… thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    Forum Moderator

    Have you tried resetting your custom permalinks back to the default setting via Settings -> Permalinks? If this works, then review Using_Permalinks before setting a custom permalink structure back up again.

    Do the category pages use a custom query?

    mwsmedia

    (@mwsmedia)

    Hi Esmi — I have this in my theme’s index.php:

    if ( is_home() ) {
    query_posts($query_string . '&cat=-18');
    }

    I think the issue is certainly permalinks. On default, the older / newer links worked fine:

    http://www.retroland.com/?cat=3%2F&paged=2

    Returning to what we normally use, %category%, causes the link to become:

    http://www.retroland.com/toys/page/2

    which doesn’t work.

    Thanks for the tip… any ideas on resolution?

    Thanks again,

    Matt

    esmi

    (@esmi)

    Forum Moderator

    Try:

    if ( is_home() ) {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts($query_string . '&cat=-18&paged=' .$paged);
    }

    I’m also having a similar problem. If anyone has any ideas (I’ve read page after page on fixes, but nothing’s working), I’d appreciate it.

    http://www.mileskahn.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Category Older Posts Link Broken’ is closed to new replies.