Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

FacetWP filters are not working in the second language.

Solution:

The issue happens because of your theme's custom block, not because of WPML or FacetWP. Please check these blocks' code or consult the theme developer.

When using the FacetWP shortcode, the filters work correctly in both languages.

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 16 replies, has 2 voices.

Last updated by amerG-2 1 year, 11 months ago.

Assisted by: Osama Mersal.

Author Posts
June 1, 2023 at 1:46 pm #13754925

amerG-2

Tell us what you are trying to do?
=> I am trying to integrate facetWP with WPML.

Is there any documentation that you are following?
=> hidden link

Is there a similar example that we can see?
=> hidden link

What is the link to your site?
=> hidden link

It pops up twice for all select options in both languages.
Can you help me with this?

June 4, 2023 at 9:13 am #13765503

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) First of all, sorry for the late reply due to a higher workload. Please login to this sandbox site and install FacetWP. (hidden link)

After that, please create a filter to replicate the issue. If the issue is replicable, kindly let me know how to reproduce it.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me a lot of information about how your site is configured.

Best regards,
Osama

June 5, 2023 at 5:05 am #13767249

amerG-2

Added the debug info.
I cannot install a plugin in your sandbox.
Can you use my store or can I share more details if needed?
Thank You!

June 5, 2023 at 7:37 am #13767697

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

It would be better to check the issue on the clean installation to avoid any plugin/server conflict.

If it's not possible, I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed.

Your next answer will be private, which means only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

June 5, 2023 at 12:00 pm #13770565

amerG-2

The issue you will find on this link: hidden link
Please check the select box on this page.
It contains both languages.

June 5, 2023 at 12:02 pm #13770567

amerG-2

Can you please open the secure chat where I can enter the cred.
Thank you!

June 5, 2023 at 12:11 pm #13770653

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I've enabled the private reply, so you can share the access details safely.

Best regards,
Osama

June 5, 2023 at 1:30 pm #13771467

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. I can't access the page on the front end page because I need the number.

Best regards,
Osama

June 6, 2023 at 4:44 am #13775037

amerG-2

Sorry, My bad.
Select Alberta and enter 154345.
LMK if anything else is needed.
Thank you!

June 6, 2023 at 9:44 am #13777197

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I checked the issue, and it could be related to your custom post type and taxonomy, so please install FacetWP on the sandbox site to test it with default WordPress post types.

If the issue doesn't persist, so the issue might be in your custom theme.

Thanks,

June 6, 2023 at 12:05 pm #13778663

amerG-2

Sorry for the inconvenience but don't have access to the facetWP account.
It was added by the old agency and I have no contact with them.

Can you please go with some another way?
As per my understanding probably an issue in the code can you check and tell me what is not configured properly?

Thanks in advance!

June 6, 2023 at 1:21 pm #13779177

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I installed FacetWP on the sandbox site and couldn't replicate the issue. Kindly check this page. (hidden link)

Please login to the sandbox using the login URL in my first reply and try to replicate the issue.

Best regards,
Osama

June 7, 2023 at 10:16 am #13784319

amerG-2

Unable to replicate the issue in your site.
It's working fine on your site.
Can you help me with the setup?
Which things do I have to check for facetWP and WPML so it works fine for both languages?
Please help me with that or can you please check the setup in code where it's not properly configured?
Thanks in advance!

June 7, 2023 at 10:39 am #13784519

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I installed your theme on the sandbox site and found that the issue happens when using your custom theme blocks to implement the filter and post grids. (hidden link)

However, when using the FacetWP shortcodes, the issue doesn't happen, and the filter works correctly. (hidden link)

So the issue happens because of your theme's custom block, not because of WPML or FacetWP. Please check these blocks' code or consult the theme developer.

I hope this helps you. If you need further info, please let me know.

Best regards,
Osama

June 8, 2023 at 9:19 am #13791497

amerG-2

Thank you for the help and suggestions.
I will check with the dev.