Soultrape
Member
Posted 5 years ago #
i have a question, i'm using Gengo for a bilingual site, and my category names are in Arabic, now the sidebar category links are being produced with arabic in them, generating extremely long urls (as its in UTF), is there a way to have category links use the category ID rather than name?
If you set your Dashboard--> Options--> Permalinks setting to "Default", that should turn your category permalinks into ID numbers rather than the name, like this:
http://yoursite.com/?cat=1
Soultrape
Member
Posted 5 years ago #
Yes, that's lovely - but I'd like WordPress to generate links (so the links of the sidebar category listing) would be /catigories/2/ - instead of /?cat=2&language=ar
I'd also like to use a custom posts directory structure, isn't there a way to use custom for posts, and set catigories the way I need'em?
Cheers
Soultrape
Member
Posted 5 years ago #
Some ideas:
Ask for help at WordPress Arabic? Sewar may have fielded this type of question before.
The only other thing I can think of is to change the slug for each category into the ID number for that category, but I don't think that's what you're looking for.
Oh, and perhaps just rewriting the URLs with mod_rewrite.
Sorry, Soultrape! Perhaps someone else will provide an answer for you.
Soultrape
Member
Posted 5 years ago #
*Bump*
Its not really related to Arabic wordpress - its a matter of how to make wordpress generate its category links using cateogry ID's instead of category NAMES - as simple as that.
http://mysite/2/5/ instead of http://mysite/categories/billyboy
Cheers!
looking at http://mysite/2/5 compared to http://mysite/categories/billyboy... what's the 2 and what's the 5?
Presumably, the 2 replaces categories? THAT much you can do now at Options -> Permalinks
However, replacing the cat name with the cat ID is going to take some core hacking. I've not seen a plugin that does that -- yet.