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: Custom Work
This topic contains 7 replies, has 2 voices.
Last updated by Carlos Rojas 1 year, 11 months ago.
Assisted by: Carlos Rojas.
| Author | Posts |
|---|---|
| December 28, 2023 at 10:10 am #15134080 | |
|
Antoni |
The search result is displayed on the default language for CPT |
| December 28, 2023 at 10:33 am #15134155 | |
|
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there, This is the ticket where we are going to continue working on solving the issue withe the search results. Regards, |
| December 29, 2023 at 9:40 am #15136168 | |
|
Antoni |
Hello, I have the information about the query build: "The availability page is set up with at least one search result, what I do is with jquery make a call to the server to request availability The server returns a json with the info. This, with jquery is placed on top of the template that already creates the availability page, and clones as many elements as results of available apartments have been found. In the part of the image of each apartment, we put the url that the server returns with the image indicated for each apartment." However, now we have solved the problem about not showing the items in English in the English Availability page. But we still have the original problem that won't show the featured image of each post in that page. In Elementor we usually use the dynamic fields to get automatically the featured images, but in this case, we didn't put any dynamic field data to get the image, so we can replace the image with the URL that our server provides. We save that URL in our servers, and we relate it to each post (apartments post type). |
| December 29, 2023 at 10:28 am #15136294 | |
|
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hello, According to the description of the search functionality, this is a custom code search that requires a custom code solution. Custom code solutions fall outside of the scope of our support service. In this case, I recommend you ask the developer to check our documentation for developers in this link: https://wpml.org/documentation/support/ and/or contact one of our certified partners in this link: https://wpml.org/contractors/ and they will be more than happy to help you find a solution. Thank you very much for your patience and understanding! |
| January 3, 2024 at 7:24 am #15145285 | |
|
Antoni |
Hello, I have made some test, trying to put the loop's layout in a new page, without the search query being involved. We translated that page and the problem is the same: the featured image (in a call to action widget) is not showing in the English version of the page. |
| January 3, 2024 at 8:37 am #15145474 | |
|
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there, Is the loop's layout translated? |
| January 3, 2024 at 12:55 pm #15146560 | |
|
Antoni |
Yes, and we tryed to put the loop's layout in a static page, and the same occurs when we translated it. The Call to Action widget dissapears. |
| January 3, 2024 at 1:06 pm #15146661 | |
|
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Could you create a video describing step-by-step how to edit the layout, the Call to Action widget and how to reproduce the issue? That way I will have a better understanding of the issue and it will help to isolate its cause. |