[Resolved] Translation of choices seems not to work
This thread is resolved. Here is a description of the problem and solution.
Problem: The client set up Generate Press Blocks with an ACF field group for translating 'choice' fields using WPML, but while the 'label' translations were working, the 'choice' translations were not appearing correctly. Solution: 1. Ensure that Generate Press Blocks has the dynamic option available for all blocks, which might not require GP Pro anymore. 2. Verify that the Element uses the 'Query Loop' Block, as the dynamic database symbol and correct meta values appear only when used within this block. 3. In WPML > Settings > Custom Field Translation, click on Show system fields and set all fields with the prefix '_generate' to 'Copy'. 4. Edit the original Element and translate it again, following the same steps for your posts.
If this solution does not resolve your issue or seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we recommend opening a new support ticket here.
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.
That's precisely my current issue. The database icon has disappeared, and I do not know why or why it was there before...
Maybe a function that was only in for a short period. I'll check.
I set up the test site as follows to activate option 2; now you're able to see the special Dynamic Data option like in my last screenshot, "Generate Blocks Headline Metadata.jpg".
Next Steps:
1. Install Generate Press Pro with Licence Key
2. Activate "Elements" in "Appearance - Generate Press"
3. Create Element, Type "Block" (DynData Test)
4. Add GB Headline (now database symbol appears, GP Pro is mandatory) with option 2
5. Add a second GB Headline with option 1
6. In the right-sided panel, set Element Type from Hook to "Page Hero"
7. Enjoy the results (top of the page, in English "Banken & Banken", in German "Banken & Banks)
"Elements" is a function of Generate Press Pro, and this special Dynamic Data Option is available in Elements only.
Conclusion:
- My issue is solved. Changing from option 2 to option 1 solves my issue.
- The issue is caused somewhere between GP pro and Generate Blocks (pro)
- I will raise an issue at GP/GB for general purposes
- Suspicion: Before GB Version 1.5 there was no Dynamic Data at the right-sided Panel (option 1), it was only option 2 and only available in GP Pro elements. (see Youtube hidden link, 1st 5 min)
I'm done for now. Thank you very much for your brave and persistent support, Andreas.
If you have any further questions, I'm open to them.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hi,
It sounds as if Generate Press Blocks has made this dynamic option now available for all blocks and without GP Pro. This is why you have the option now available on each block.
The dynamic database symbol will only appear on the Elements. These Elements seem to have a global display condition.
I translated the Element and I can confirm that the translated meta value does not show up on the translated posts.
The issue seems to be, that your Element is not using the "Query Loop" Block and this is why the correct meta value is not showing up. If I place the heading with dynamic value to the "Query Loop" block, it works.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I need to add here, that it actually works this way on my local copy of the site, but it seems not to work on the sandbox. I am not sure why is that.
According to the video from Generate Press, it seems that they recommend using the Element inside a Query Loop and this solves the issue on my local test.
I also forgot to add, that you need to make sure to go to WPML > Settings > Custom Field Translation, click "Show system fields" and set all fields with the prefix "_generate" to "Copy".
After that edit the original Element, and translate it again.