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.
i hope its not like that..... it will break loads of links for me. :(
I don't think we'll be alone on this one!
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.
bturner
Member
Posted 8 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.
firstbigweekend
Member
Posted 8 years ago #
I'm having the same problem as bturner, where the /category in permalinks doesn't work.
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.
bturner
Member
Posted 8 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.
bturner
Member
Posted 8 years ago #
However, that does update the category links, but they still don't work correctly.
Anonymous
Unregistered
Posted 8 years ago #
Is this fixed in today's nightly build? :/
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.
smoussawer99
Member
Posted 8 years ago #
Fixed. Should be available soon.
Anonymous
Unregistered
Posted 8 years ago #
bturner
Member
Posted 8 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!
Well, that is good to know. The fix I used was just to use strtolower on line 33.
But if you have spaces in your category names that will not work.
Look like they fixed it now. :-)