Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Dražen 1 year, 10 months ago.

Assisted by: Dražen.

Author Posts
September 18, 2023 at 1:23 pm #14412447

darrenB-10

I am trying to: Get Algolia to only index one version of the page rather than both the EN-US and EN-GB pages.

Link to a page where the issue can be seen: hidden link - search for Maldives

I expected to see: Only one result

Instead, I got: multiple results for the alternate pages

Screenshot 2023-09-18 142303.jpg
September 19, 2023 at 5:54 am #14416037

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for contacting us.

I see you are using a custom theme, so difficult to say what might be wrong in the code. I would advise checking with your developer and making sure the correct language code is used when searching. if you need help with custom code you can hire a WPML contractor:

- https://wpml.org/contractors/

From the WPML side, what I can suggest is to try enabling the ajax language cookie option:

https://wpml.org/documentation/getting-started-guide/language-setup/enabling-language-cookie-to-support-ajax-filtering/

Kind regards,
Drazen

September 19, 2023 at 12:23 pm #14419379

darrenB-10

Looks like Algolia have already provided tips here - hidden link

Except I tried this and it didn't work!

September 19, 2023 at 12:35 pm #14419465

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

since the instructions and code are provided by the theme author, not us, and this theme is not on our official compatible theme list nor we have tested it, please contact the theme support and check further with them on why the code is not working and if they have another suggestion.

If they need help from our side, they can join our GoGlobal program and our devs will be glad to help them out.

- https://wpml.org/theme/
- https://wpml.org/documentation/support/go-global-program/

Regards,
Drazen