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 1 reply, has 2 voices.

Last updated by Bruno 9 months, 1 week ago.

Assigned support staff: Bruno.

Author Posts
January 18, 2019 at 3:21 pm

aboB

1)I am trying to: This website is multi-language one using WPML, when using the advanced search in the English version the result is in English which is correct but when using the advanced search in the Arabic version it redirects to the English home page and didn't get any results.

Link to a page where the issue can be seen: hidden link

Another problem:

2) The widgets like (property status, property type) are fine in English but the words are over numbers in the Arabic version. Please see the attached image.

Link to a page where the issue can be seen: hidden link

You can use the admin account to check as below:

Thanks

January 18, 2019 at 8:59 pm #3107280

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for contacting us.

To use advanced search with URL format as arguments "?lang=ar", you would need to follow the steps in our documentation to have the language set at the time of the search: https://wpml.org/documentation/support/creating-multilingual-wordpress-themes/search-form/

That is, by following the steps of our documentation, a field would be added on the form to keep the current language and search properly according to the language.

Another option would be to use the URL format per directory: site.com/ar/. That way the search would work correctly.

To do this, follow the steps below:

- Click on the WPML > Languages > Language URL format
- Select the "Different languages in directories"
- Click on the "Save" button

Remember to clear your site's cache for testing on the front end. Please, let me know if I can help with any other questions you may have about it. I'll be happy to help.

Thank you.