WordPress.org

Ready to get started?Download WordPress

Forums

Advanced permalinks - category links not working (5 posts)

  1. TheOrganicSister
    Member
    Posted 3 years ago #

    hey there, i recently installed and began using Advanced Permalinks. Everything seemed to be working fine until someone noticed that my categories weren't working.

    at first they were linking to my homepage (http://theorganicsister.com). i went into AP again and added a category structure (it was blank, as per the instructions that leaving it will blank will result in default structure). now they are all going to a error 404 page.

    ideas as to what is causing this and if there is a fix?

  2. Robert
    Member
    Posted 3 years ago #

    It's just a problem with the category rewrites of the plugin.
    So adjust in the normal permalink section the category base as wanted. I hope so you can keep your category urls. Because then it's easy.
    Next edit the plugin Advanced Permalinks, the first selected file is right. Now look in the editor for:
    $this->add_filter ('category_rewrite_rules');
    and add simply
    //
    at the beginning.
    Done.

  3. Zoe1416
    Member
    Posted 3 years ago #

    Once I installed the Advanced Permalinks plugin, my category links didn't work either. Only the second level categories worked.

    I added the // before the $this->add_filter ('category_rewrite_rules');

    And now the categories work... but I am getting duplicate category text. For example, the old category used to be:

    http://www.pregnancybaby411.com/category/babies/

    And now, after adding the //
    I get this:

    http://www.pregnancybaby411.com/category/babies/babies/

    How do I fix this?

  4. blogodisea
    Member
    Posted 2 years ago #

    I had this problem with categories, thanks for the fix, but now i found that statis pages are the same, showing an error blank page.

    ┬┐Does anybody now how to solve it? I think it must be difficult since WordPress shares the %postname% in entries and static pages.

  5. aiweiwei
    Member
    Posted 2 years ago #

    it works fine for me after i added the //, thx 4 the tips hartrobert, it saves my day, thx!!! :)

Topic Closed

This topic has been closed to new replies.

About this Topic