Background of the issue:
I am developing a site and want to have multiple categories in a single website with multiple languages per category. Specifically, I need URLs like /us/en for English and /us/ar for Arabic. I want the /us part to be based on a new taxonomy, not on categories, since I already have categories serving other purposes on the website.
Symptoms:
No specific issue or error message mentioned.
Questions:
How can I set up multiple categories in a single website with multiple languages per category using WPML?
How can I configure the /us part of the URL to be based on a new taxonomy instead of categories?
While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.
That is not possible with WPML out of the box, WPML adds language to your website URL, so in this case before using WPML your website already needs to function like this and be in the format domain.com/us/, then WPML will add language part.
For this will need some custom code, rewrite or setting up, website URL as that, for which I suggest contacting hosting support or hiring a developer. You can use WPML contractors: https://wpml.org/contractors/
Hello There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.
I took over this ticket and will try my best to assist you in this matter.
It is possible to achieve this in a single WordPress installation. However, since you want the taxonomy slug (e.g., /us/) to appear before the language code in the URL, you'll need to modify the URL structure with custom code. To customize how the WPML language code appears in the URL, you can use hooks like wpml_permalink.
Please refer to the WPML Hook guide to find the specific hooks that will help achieve the URL structure you're aiming for.
As you know, custom coding is beyond the scope of our support, we can only provide general guidance. For more targeted assistance, you might consider hiring a developer experienced in customizing WPML and its add-ons. You can find certified professionals on our contractors list. They should be able to help you achieve exactly what you’re looking for.
If you have any other questions or need clarification, feel free to let me know. I will be happy to help.
Best regards,
Prosenjit
The topic ‘[Closed] Multiple folders/Multiple languages’ is closed to new replies.