Forums

Category Older Posts Link Broken (4 posts)

  1. mwsmedia
    Member
    Posted 9 months ago #

    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!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    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?

  3. mwsmedia
    Member
    Posted 9 months ago #

    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

  4. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    Try:

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

Reply

You must log in to post.

About this Topic