• I am trying to use

    <span style="float: left"><?php next_posts_link('&larr; Next') ?></span>
    <span style="float: right"><?php previous_posts_link('Older &rarr;') ?></span>

    in my index.php. Paging works great unless the user has drilled down into a specific category, then paging always returns a 404.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter nipponese

    (@nipponese)

    Ok, I’ve deduced that this only happens when permalinks are set to something other than Default.

    Thread Starter nipponese

    (@nipponese)

    Anyone?

    Ok, I’ve deduced that this only happens when permalinks are set to something other than Default.

    Did your .htaccess file update without any error after changing from the default permalinks?

    Thread Starter nipponese

    (@nipponese)

    Yes. I have the permission on the file set to 777.

    Thread Starter nipponese

    (@nipponese)

    yes

    Ahhh… if that is your exact code,

    <span style="float: left"><?php next_posts_link('&larr; Next') ?></span>
    <span style="float: right"><?php previous_posts_link('Older &rarr;') ?></span>

    Possible missing semicolons issue?

    <?php next_posts_link('&larr; Next'); ?>
    <?php previous_posts_link('Older &rarr;'); ?>

    Are they necessary in this case?

    I read somewhere that you should “set up a page which uses the category as template”. Doesn’t make sense at all, though… but if it’s true, what name shouls the page have, and what more do I need to know to make it work?

    Ignore my last comment.

    Apparently, until now, I had this URL format (example):

    http://trendgiveafck.com/street-walk/

    when paging turneed on the site wanted to go to

    http://trendgiveafck.com/street-walk/page/2

    which led to a 404. But if I added “category”:

    http://trendgiveafck.com/category/street-walk/page/2

    I came to the correct page. So, I in the admin panel I went to

    Settings->Permalinks and set the field “Category-base” to “category”

    also checked my hard links in my meny to go to “category/street-walk/” instead of just “street-walk”

    Problem resolved!

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

The topic ‘‘Paged’ causes 404 error.’ is closed to new replies.