WordPress.org

Ready to get started?Download WordPress

Forums

Category Older Posts Link Broken (5 posts)

  1. mwsmedia
    Member
    Posted 2 years 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
    Forum Moderator
    Posted 2 years 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 2 years 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
    Forum Moderator
    Posted 2 years ago #

    Try:

    if ( is_home() ) {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts($query_string . '&cat=-18&paged=' .$paged);
    }
  5. phisto
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic