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. The problem happens between the breadcrumb & search result page: -step 1: open a tour in Malay language 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? What is the link to your site? |
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. ps: i had another ticket "WPML settings not saved properly". I dun know whether the setting amend here is saved successfully or not. thanks |
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. This info is private and available to you and WPML supporters only. Note: 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 |