Skip Navigation

[Resolved] Search view stopped working after translation with wpml

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 12 replies, has 3 voices.

Last updated by Kostas 3 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#2014799

Default site language is Greek. After English has been added, the search form(visible to the left of nearly every page) cannot find anything. I can give you admin access to the site, together with front-end access.
Please check it out, thank you.

#2014961

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Let me set up a private reply so that you can share the site credentials.

How is the View search form added, is it using a sidebar widget?

#2014975

Hi Nigel, thank you for responding.

Frontend u / p: stag / dft678+9
Backend u / p: otg-support / SRT689jk+op

Yes, the View search form is added using a sidebar widget of the GeneratePress theme.

#2015323

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2021-04-08 at 3.11.13 PM.png

Hi Kostas,

I took a look at the site for you and noticed that you have not yet translated any of your Oliveoil posts to English. See Screenshot

This is why the English search is not working. The search will essentially only perform a filter on the posts that are in the language of the search form.

Once you've translated the post themselves then it should work fine.

Please let me know if this clears up the issue for you.

Thanks,
Shane

#2015347

Hi Shane,

Yes, I see what you mean, although as all post fields (except notes) are predefined (and translated), I was expecting it to be automatic somehow...

So, we need a way for the new posts to be auto-translated to English at publish time.
Any ideas?

Thank you,
Kostas

#2015359

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kostas,

The knowledge we have here in the Toolset forums about WPML is quite limited. So if you want a more detailed response on how to achieve this then I would recommend that you get in touch with our WPML support team at the link below.

https://wpml.org/forums/forum/english-support/

Thanks,
Shane

#2015361

Will do Shane, thank you anyway.

Regards,
Kostas

#2016145

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kostas,

Great, happy to see that I was able to assist you on this.

If there are no further queries then you can go ahead and mark this ticket as resolved.

Thanks,
Shane

#2016343

Hi again Shane,

Actually, I have translated to English 3 posts, again I get "Nothing found" search results.

To confirm, set Blend to No (or Yes), leave all others to default values, then Search.

It seems something else is wrong with this search view.

Thanks,
Kostas

#2016535

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kostas,

Where these translations created by doing it as a duplicate?

I suspect what is happening here is that the custom fields aren't getting populated correctly hence why the blank search.

As you can see from my test search below.
hidden link

When i put 2.5 into the "Ποσότητα" field and hit search, the view returns the correct results. I tried to resave one of your translated posts but couldn't because I saw that there were a few required fields where they have not yet been translated so I couldn't save without these fields having a value.

I suspect resaving the posts will resolve the issue .

Thanks,
Shane

#2021153

Hi again Shane,

Sorry for the delay.

What is happening here is that a "Seller" user creates an "Oliveoil" in Greek, using a frontend cred form. All Oliveoils published by the Sellers, are searched using the search view in the left sidebar widget. This search only works for the Greek language. For the English language, it gives Nothing Found, which may be obvious, as there are no Oliveoils originally published in English.

Although I always get Nothing Found from the English search, I need to find a way to somehow automatically translate published Oliveoils to English. Please note, that all Oliveoil fields are predefined and so are translated already to English (all except the Notes field).

Or follow a different approach?

Thanks for your patience,
Kostas

#2021257

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kostas,

While getting in touch with the WPML team will provide you with more details on this, I've checked our documentation on WPML for automatic translation. Here is a link to it below.
https://wpml.org/documentation/automatic-translation/automatically-translating-multiple-translation-jobs-in-bulk/

While i'm aware that you're not able to automatically translate the post while the greek version is being created, you are able to automatically bulk translate content.

For more details on translation queries I recommend contacting the WPML team.

Thanks,
Shane

#2021777

Thank you Shane, I will contact the WPML team.

Best regards,
Kostas