• 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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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:

    https://yoursite.com/?cat=1

    Thread Starter soultrape

    (@soultrape)

    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

    Thread Starter soultrape

    (@soultrape)

    *Bump*

    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.

    Thread Starter soultrape

    (@soultrape)

    *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.
    https://mysite/2/5/ instead of https://mysite/categories/billyboy

    Cheers!

    looking at https://mysite/2/5 compared to https://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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘using category id in URL – How’ is closed to new replies.