I'm looking at the homepage. I inserted the code for the page via a shortcode of your shortcode because I'm passing some other calculations through. The code works fine on the English side and brings the content back. However, when you look at the translated page, nothing is showing for that view. I confirmed I translated the content and confirmed the code is there but it isn't pulling back the translated content.
Hello. Thank you for contacting the Toolset support.
Well - can you please guide me what code you added and what things you are looking to translate and where you are trying to display the translated content?
A test case example will help me to understand your issue with problem URL as well as help me to guide you in the right direction.
Hi Minesh,
I believe in the original case you should have the login information. If you're in the backend, the content is on the "Daily Transformations".
The code is being put into place by my shortcode [si_data]
The text that my shortcode is outputting is [[wpv-view name="single-day" day="$current'"]
$current is why I need it to be in a shortcode outside of your system because the day is variable based on a few items, including the length of time someone was a member.
I used the advanced translator and I translated the page after I added the repeating field text.
The repeating field text appears fine in English. When I flip to Spanish, none of the Spanish translation appears.
I enabled WPML to pick up the custom post type that was for this repeating field. I can see from the advanced translator that the text is indeed translated. But for whatever reason, the system isn't seeing it.
Well - I still need more details to understand your issue.
- I would like to know where exactly you added the shortcode [si_data]?
- I see you created the view which you can access using the following link that queries the repeating field group "Daily"
=> hidden link
But when you display the repeating field group, you need to add the post relationship filter so that we can define the post parent that belongs to the repeating field group. If we do not add relationship filter we will not be able to sure for which post you want to display the repeating field entries.
I would also like to know where exactly you added the view: [wpv-view name="single-day" day="$current'"] ?
I see there are two fields with repeating field group Day and Daily Content. you are passing day as view's shortcode attribute as above, do you mean that the current date day should be passed to the attribute day?
the count is being passed. The actual post/page that this is appearing on is the Daily Transformation Page. The view is displaying fine in English. It's when it displays in Spanish that things fall apart.
Sorry I had to turn WPML off last night to even try to see if another ML program will work as I'm on a tight deadline here and should have had this part done already.
I turned it back on now. The translation is done for all the content of "Day 1". The English now is coming up and not the translation.
Also, the video there's no place to translate it. But I think that's a WPML issue and I can't find the resolution to that on their site. Are you guys not the same group?
Well - I see your site have some strange things happening as I do not able to see the repeating field group on Spanish language:
=> hidden link
However repeating field group is displayed on the English language:
=> hidden link
Then, I tried to create a sandbox site with WPML and Toolset plugins installed, you can use the following link to login to backend:
=> hidden link
I've created the following custom field group that have two fields:
=> hidden link
As you can see both fields are set to "Translate" under section "Custom Fields Translation":
=> hidden link
I've created the following view that loop through the repeating field group entries:
=> hidden link
This is the post where I've added the view:
=> hidden link
And whatever option I use "Use WPML's Translation Editor" ON or Off - I can see with the above page when you change the language (available at bottom of the page) it does display the translated content.
Can you please add add-on plugin WPBakery page builder to this site and try to check first:
- if you able to see repeating field group on both En and FR page (as on your site on the Spanish language post RFG not displayed )
- Try to translate post and check if it works
I disabled the Divi builder on the page and put on the WPBakery. Didn't seem to make a difference. I created a new test page and still the same results on my site.
I just noticed when I click on the Spanish version to edit and I turn off the "Use WPML's Translation Editor", I don't get any of the repeating fields in Spanish. Do I have to make a version of the custom fields for Spanish?
I think I got it. I had turned on the translation for the custom fields and somehow that was expecting/waiting for a duplicate repeating field grouping for Spanish. But as I couldn't get to it, I couldn't get it created and didn't realize it wasn't there. I still can't use the translation editor but if I use the base system it looks like it all works now. Thank you.