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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 |
- | - | - | - | - | - | - |
Supporter timezone: America/Lima (GMT-05:00)
This topic contains 28 replies, has 2 voices.
Last updated by Andreas W. 7 months, 2 weeks ago.
Assisted by: Andreas W..
Author | Posts |
---|---|
May 22, 2024 at 1:41 pm #15658676 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I do see we are still running into this issue: WPML plugin cannot connect to wpml.org The reason could be that WPML is blocked by a firewall. Please contact your hosting provider and ask them to whitelist the following domains: Source: https://wpml.org/faq/wpml-plugin-cannot-connect-to-wpml-org/ If this will not solve the issue, please let me know. |
May 23, 2024 at 6:32 am #15660527 | |
Rene |
Hi Andreas, I fixed the connection problem. However, this didn't solve the issue, as it appears to be a new problem. It would be a good idea for you to check the website and try to replicate the problem yourself, as I demonstrated in the screenshots in the previous messages. |
May 23, 2024 at 3:36 pm #15664229 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Take note that I have set the staging to "Different languages in directories" as the second domain was pointing to your live site. IMPORTANT: 1) All Elementor templates existed only in English. I have now assigned to ES template to Spanish and connected both contents. 2) The next issue here seems to be the widget "Listing Grid" from JetEngine. To make this widget work you need to translate JetEngine > Listings > Events listing. 3) Then I realized, that I needed to go to WPML > Settings > Custom Field Translation, click on "Show system fields" and set the following fields to "copy": _listing_data Then I translated the actual Listing at JetEngine > Listings. Anyhow, this still does not solve the issue. The "Events Listing (Listing Item)" from JetEngine seems not be available in Spanish and this is why WPML can not load the translated posts. 4) This issue further might be related to JetEngine > Query Builder. This means, the Widget right now shows no results in Spanish, as it is looking for English posts, based on this JetEngine Query Builder. I see you also created a second Query called "Upcoming events - ES" but there is no way that WPML can load this on Spanish, as it is not a translation. I then realized that your Queries use the JetEngine Taxonomy "Languages" which still was not translated either. I set it to "Translatable" inside the WPML Settings and translated them at WPML > Taxonomy Translation. Anyhow, this still does not solve the issue and I am also not sure if this design is recommended here. You do not need to assign each post to a language category, as WPML will handle the language assignment. 5) Finally, I realized that your JetEngine > Listings > Events Listing is configured to filter default WordPress Posts and not Custom Post Types - see the right sidebar of WordPress Editor when editing the Listing Grid. 6) So, I translated your Posts, which also were not translated yet. Anyway, this still does not solve the issue that the actual JetEngine Listing Items (Events Listing) are not available in Spanish. ---- At this point, I would like to offer a WPML Test Site on which we will try to recreate the issue so that we can escalate it internally. Would you be able to install the latest version of JetEngine on my test site for this purpose? Let me know if this would be possible and I will send you a link to my test site. |
May 24, 2024 at 6:49 am #15665720 | |
Rene |
Hi Andreas, Thank you for the thorough explanation and for trying to resolve the issue. A WPML test environment seems fine to me. We can certainly set up a JetEngine for you in the test environment. How would you like to proceed with this? |
May 24, 2024 at 5:28 pm #15668845 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Thank you for your cooperation! Here is the One-Click-Login link: WPML is already activated and configured. Please install JetEngine and try to recreate the issue. Do not migrate your whole website to this sandbox. We need to try to recreate the issue from scratch using a simple example. Once you are done with this task, please drop me a comment on this ticket. |
May 27, 2024 at 8:27 am #15672577 | |
Rene |
I've set up the environment. Here I've added two templates: upcoming events NL and ES. |
May 29, 2024 at 3:50 am #15681521 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Could you please have another look at the test site? Your CPT hidden link is showing a 404 on the original content. Also, it seems you were using a non-valid tax query for your CPTs. Also, see the Blog Page, Posts Listing, and Posts Query, where I have no issue displaying the results in each language. I then created a new post type "Portfolios" in JetEngine and created a listing and a query and I still do not see an issue. Please assist me in replicating the issue. |
May 29, 2024 at 8:15 am #15682034 | |
Rene |
Hi Andreas, I don't think you fully understand the purpose. Therefore, I'm referring you back to the first message of our conversation. I see that you've removed the Spanish templates everywhere. This is not the intention. I would like to show a different template because the Spanish events are completely different from the English ones. Please read through our conversation again. I found the difference in Sandbox and the original CB website. See the screenshot, this should fix the problem when applied on the live website. How do we do this? Please use the website environment CB2. |
May 29, 2024 at 10:28 am #15682859 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I removed the templates, as you had on NL, and one ES template, which both were assigned as English content. The templates need to be translated. One needs to be available in English and one in Spanish. This is the same as if you handle posts or pages, as also templates are post types. The only exception is the Query, here you will use only one for both languages, as it is handled like an options page. Also, the homepage needs to be translated. As you do not have a translation option on the live site, there seems to be an issue that we need to investigate further. Can you provide access to this site? |
May 29, 2024 at 12:55 pm #15683922 | |
Rene |
You already have acces to the cb2 environment, you can find the login details in this chat. |
May 29, 2024 at 3:02 pm #15684631 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I connected myself after your prior comment and the issue that you reported with the homepage's translation does not exist on this site for me. --- I saw on my test site, that you were using a tax term ("Dutch") in your custom posts query where you try to categorize the posts by language which might not work out as expected. If you intend with this to make sure that language-specific content appears in each language, then please take note, that this is not necessary! You will not need those terms in such a case. I am referring to the field "Term": If you use here only the English terms then you usually also would need to add the translated Spanish terms, so that this could work in a second language. In your case, you only used "Dutch" as a tax term. This seems not to be valid. I can not make this work on my test even on the original content. If you click the text field you get available options to choose from. It seems to me this field is not supposed to accept custom text values. Further, in JetEngine you can sadly not create one Query for each language, as this is an options page and we need to make sure that its options will work in both languages. We might try to translate some of those options with WPML > String Translation, if possible. I will try once more to replicate this issue on my test site and then get back to you again. |
May 29, 2024 at 3:43 pm #15684843 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I can still not recreate this issue on my test site and want to ask you for a third time to please assist me in trying to recreate the issue in a similar way as you are creating the content on your site. I see you use a fairly complicated setup and takes a lot of time for me to identify how you achieved that. My advice: Please use only one Query inside the Query Builder and delete "Upcoming events - ES". Use only one Query for both languages, which works as expected on my test site. Another issue on your site is the following: On the following "Training & Seminar" page you use a shortcode to display an Elementor template: You are using the same shortcode on the Spanish page and this is why it does not work. You need to use the shortcode of the translated Spanish template, which is: I have placed now this shortcode manually on the Spanish page. Another issue is that this template, called "NL – Trainingen" is translated manually, which means that you will need to set all the options manually on the translated template. You should be able to avoid this if you use the WPML Translation Editor for translating this template. I tried now to to set up the widgets inside the Spanish template manually and it does not solve the issue, but this might be still related to the conflict of two existing queries for the same post type inside JetEngine's Query Builder. Please try now to solve the conflict with your duplicated query, then make sure that the correct query is selected on your widgets and test again. Also, I suggest you translate all the contents with the WPML Translation Editor. I had not issue with that on my test site. |
May 31, 2024 at 11:32 am #15691915 | |
Rene |
Thank you for your help. I have managed to solve the issue so that now two different templates can be called. The problem now is that the post types are displayed on the .nl website, but they are not displayed on the .es website. I created a new query on the website where I disabled the tax query just for testing. Unfortunately, the post types are still not displayed. Do you know what could be causing this? (see screenshots) On the Elementor builder it works. But not on the live. |
May 31, 2024 at 4:16 pm #15693421 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
You still have duplicated queries for the same post type created in JetEngine. Only use one query. If this still will not solve the issue, please update all plugins and send me after that a message, so that I take another look. |
The topic ‘[Closed] Elementor shortcode translation’ is closed to new replies.