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.

This topic contains 6 replies, has 2 voices.

Last updated by chiewY 1 year, 10 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
April 29, 2022 at 7:12 am #11119691

chiewY

From your site, I know that Custom Permalinks is compatible with WPML.
However, my website has an issue with it.
Once deactive the Custom Permalinks, the below issue is solved.

The problem happens between the breadcrumb & search result page:
I use the breadcrumb comes together with the theme.

-step 1: open a tour in Malay language
hidden link

step 2: click the location in breadcrumb

step 3: shows search result page (Problem– language jumps to English, which should be in Malay, plus shows no tours found)

step 4: if manually switch language to Malay on this page, tours show fine.

The problem is why the language jump back into English after click location in breadcrumb?

After consulting the theme team, they informed me that it is caused by Custom Permalinks. If deactive the plug in, problem sovled.

Can you help me with it?
thanks.

What is the link to your site?
hidden link

3-2.jpg
3-1.jpg
2.jpg
1.jpg
April 29, 2022 at 9:18 am #11120761

chiewY

Dear,

By the way, do you have any other permalink manager plugin recommend with is compatible with WPML?

thanks

April 29, 2022 at 10:25 am #11121633

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for contacting WPML support.

Can you go to WPML->Languages->Language switcher options->Preserve URL arguments and add the query parameter from the URL with a comma

For hidden link

You should add location_id,location_name

Once you do this while switching it should switch to the language correctly.

Let me know if this helps.

Thanks

April 30, 2022 at 3:00 am #11125883

chiewY

Dear,

thanks for your reply.
Tried what you suggested, problem still the same.

ps: i had another ticket "WPML settings not saved properly". I dun know whether the setting amend here is saved successfully or not.

thanks

Z.jpg
May 2, 2022 at 4:17 am #11129885

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

May 3, 2022 at 9:18 am #11138901

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Can you check the issue now?

To fix the issue, I went to hidden link Line number 213 & 238 and replace the following

$page_search = st_get_page_search_result($post_type);

With

$page_search = st_get_page_search_result($post_type);
$page_search = apply_filters( 'wpml_object_id', $page_search, $post_type );

Look forward to your reply.

Thanks

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.