Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 -
- - - - - - -

Supporter timezone: Pacific/Easter (GMT-06:00)

This topic contains 1 replies, has 2 voices.

Last updated by Ilyes 1 year, 7 months ago.

Assisted by: Ilyes.

Author Posts
November 8, 2023 at 1:43 pm #14757517

richardB-37

Hi, i have a site that is requiring me to add the whole country as the country code, but its being an issue as WPML has a limit of only 7 characters.

From this hidden link
and this is how i want it to look
hidden link

November 9, 2023 at 2:37 pm #14768397

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

Unfortunately, we are unable to accommodate your request for a change in our source code. Custom coding is not part of our service and this code is prone to break the whole code.

Rewrite rules are very complex and we advise against them. They require modifications for all CPTS, and they create a lot of confusion. The same applies to 301 redirects. We have no feasible way to implement such redirections.

The only possible solution is a hack, which involves altering the database values. This is very risky and we strongly discourage it.

If you still want to go ahead with this change, we suggest you contact one of our contractors who can do it for you. You can find them here: https://wpml.org/contractors/.

Best,

The topic ‘[Closed] Increase language code character limit – 7 characters’ is closed to new replies.