WordPress.org

Ready to get started?Download WordPress

Forums

posts_nav_link and category browsing (12 posts)

  1. mrpatto
    Member
    Posted 7 years ago #

    I have a blog running on IIS. I have permalinks setup so that I can browse categories like this:

    /index.php/category/underpants

    where underpants is the category name. That part works fine. However, when there is more than one page of posts for that category, the paging links show up but don't work.

    The posts_nav_link tag outputs links like this:

    /index.php/page/2/

    Which gives page 2 of all posts, when I want

    /index.php/category/underpants/page/2/

    page 2 of that category.

    Suggestions?

  2. APasarElRato
    Member
    Posted 7 years ago #

    Please!!! I've got the same error, can you help us??? Thanks

  3. lemon404
    Member
    Posted 7 years ago #

    Same here with IIS 5.0 and WordPress 2.1.2

  4. APasarElRato
    Member
    Posted 7 years ago #

    Yes, I also have IIS, on ASPNix hosting, and WP 2.1.2... please, can anyone help us??

  5. Radiomestizacom
    Member
    Posted 7 years ago #

    i have the same problem..

    http://www.radiomestiza.com

  6. Radiomestizacom
    Member
    Posted 7 years ago #

    also IIS 5.0 and WordPress 2.1.2

  7. Radiomestizacom
    Member
    Posted 7 years ago #

    in the navigation

    so when i am in category/musica (http://www.radiomestiza.com/index.php/category/musica/)
    i should go to

    http://www.radiomestiza.com/index.php/category/musica/page/2/

    and i am going to
    http://www.radiomestiza.com/index.php/page/2/

    in the archive.php i have
    <?php include (TEMPLATEPATH . '/navigation.php'); ?>
    after

    this is the code in my navigation.php
    <div id="pagenavigation">
    <div class="left"><?php next_posts_link('← « Anteriores') ?></div>
    <div class="right"><?php previous_posts_link('Siguientes » →') ?></div>
    </div>

  8. madams
    Member
    Posted 7 years ago #

    I am having the same problem upon upgrading from 2.1 to 2.1.3. Has anyone solved this problem?

  9. PropertyGuy
    Member
    Posted 6 years ago #

    I have a very similar problem.

    When I'm trying to use the next/previous buttons when I'm in a category I get this:

    http://www.website.com/blog/test/page/2/

    When it should be:

    http://www.website.com/blog/category/test/page/2/

    The "category" directory gets removed. It's driving me insane.

    Any ideas anyone?

  10. Odotcom
    Member
    Posted 6 years ago #

    im also having the same problem, and i cant find a solution to save my life.

    has this been posted already?

  11. Aarne Toompark
    Member
    Posted 6 years ago #

    Same problem here with PHP5.2.3, 5.0.32-Debian_7etch1-log and Apache/2.2.

  12. Odotcom
    Member
    Posted 6 years ago #

    ok guys... i think i figured out this problem for the most part.

    all you have to do is include the actual word 'category' in the permalink either hard link it or whichever. so it should go:

    /category/catname/postname or however.

    then this will work: /category/catname/page/2

    it solved my problems

Topic Closed

This topic has been closed to new replies.

About this Topic