WordPress.org

Ready to get started?Download WordPress

Forums

Category Permalinks (19 posts)

  1. Nick Momrik
    Member
    Posted 9 years ago #

    I just upgraded to the latest CVS and the category permalinks have changed. They no longer include "/archives" in them and are not converting to all lowercase letters.
    Is there an option for this on it's way under Options->Permalinks? This is a pretty drastic change.
    I don't know about others, but I can't use the rewrite rule because I have static pages on my site such as mtdewvirus.com/about/ and I don't want these getting redirected to the WP index.php file with a parameter thinking it is a category.
    It seemed like a pretty major change getting thrown in the mix.

  2. OperaManiac
    Member
    Posted 9 years ago #

    i hope its not like that..... it will break loads of links for me. :(

  3. Nick Momrik
    Member
    Posted 9 years ago #

    I don't think we'll be alone on this one!

  4. Nick Momrik
    Member
    Posted 9 years ago #

    Seems like function get_category_link was modified and things were left out.
    It doesn't include the $front on line 30 and doesn't use the category_nicename anymore on line 27 (simply uses cat_name). After changing these lines back to an old version of the function, category permalinks are working again.

  5. OperaManiac
    Member
    Posted 9 years ago #

    damn typos :D

  6. bturner
    Member
    Posted 9 years ago #

    I ran the updated upgrade.php in wp-admin and the new category prefix option started working (it's a new option on the Permalinks admin page), but the wp_list_cats() still returns bogus links.
    If I put in "/category" for the category prefix, I get category links like:
    http://website/category/CategoryName/
    or
    http://website/category/parent/ChildCategory/
    which do not work right now.

  7. firstbigweekend
    Member
    Posted 9 years ago #

    I'm having the same problem as bturner, where the /category in permalinks doesn't work.

  8. Nick Momrik
    Member
    Posted 9 years ago #

    Where do you see the new option? I just made sure I uploaded all of the files from CVS and still I don't see a new permalink option for categories and I had to fix the code as I explained above.

  9. bturner
    Member
    Posted 9 years ago #

    I get the option on /wp-admin/options-permalink.php, right below where you specify the permalink structure for individual archives.
    There's a long input text box, with this above it:
    Enter a path without templates for your categories: FIXME[THIS WORDING MAKES NO SENSE]
    At first it didn't save what I put in the box, until I ran upgrade.php (which I noticed had been updated when I grabbed the latest from cvs). I guess that updated the db with a place to store the new setting.

  10. bturner
    Member
    Posted 9 years ago #

    However, that does update the category links, but they still don't work correctly.

  11. Anonymous
    Unregistered
    Posted 9 years ago #

    Is this fixed in today's nightly build? :/

  12. Beel
    Member
    Posted 9 years ago #

    Waiting for it to come across the CVS (don't want to mess with a full dl) but will let you know as soon as it does.

  13. smoussawer99
    Member
    Posted 9 years ago #

    Fixed. Should be available soon.

  14. Anonymous
    Unregistered
    Posted 9 years ago #

    Woo!

  15. bturner
    Member
    Posted 9 years ago #

    I second that "Woo!"

  16. Nick Momrik
    Member
    Posted 9 years ago #

    I must have been blind or something!! The only problem with them now (and I just upgraded to the latest CVS) is that category_nicename should be used on line 27 instead of cat_name, because cat_name, allows upper case letters and such and doesn't work. I made the one change in the function and it works great now!

  17. Beel
    Member
    Posted 9 years ago #

    Well, that is good to know. The fix I used was just to use strtolower on line 33.

  18. Nick Momrik
    Member
    Posted 9 years ago #

    But if you have spaces in your category names that will not work.

  19. Nick Momrik
    Member
    Posted 9 years ago #

    Look like they fixed it now. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.