<b>Background of the issue: </b>
I am preparing an Elements Template for a Custom Posttype. When using the Generate Blocks Headline Block, I can either translate the content of the Block or the Dynamic Before Text using the following code I found on another post in your Forum. Here is the code:
Markup of a Headline Block in the DB:
<!-- wp:generateblocks/headline {"uniqueId":"2d5b779f","blockVersion":3,"display":"inline-block","spacing":{"marginBottom":"1em","marginTop":"1em"},"dynamicContentType":"post-meta","dynamicLinkType":"term-archives","termTaxonomy":"countries","termSeparator":",","className":"dynamic-term-class","gpDynamicTextType":"terms","gpDynamicLinkType":"term-archives","gpDynamicTextReplace":"Terms","gpDynamicTextTaxonomy":"countries","gpDynamicTextTaxonomySeparator":"","gpDynamicTextCustomField":"title","gpDynamicTextBefore":"Marine Species in "} -->
<h2 class="gb-headline gb-headline-2d5b779f gb-headline-text dynamic-term-class">Terms</h2>
<!-- /wp:generateblocks/headline -->
Link to a page where the issue can be seen: hidden link
<b>Symptoms: </b>
When the code is active, the 'before text' is not seen in the Advanced Editor. When the code is inactive, only the 'normal' headline content shows up. The same issue occurs on the frontend; only one of the two is being translated. I expected to see 'Marine Arten in Südkorea' but got 'Marine Species in Südkorea' instead.
<b>Questions: </b>
Why is the 'before text' not visible in the Advanced Editor when the code is active?
Why is only one of the two (either the content or the 'before text') being translated on the frontend?
Can you please install the mentioned addon plugin on the next test website and share with me the test page and what parts need to be translated but are not? Then I will check and try to create the correct XML code so you can translate them.
I could set it up correctly now. Strangely in my Installation i can choose between 3 modes in ACF which i can not in your sandbox.
I choose Expert Mode which i thought was already chosen before. And now it works as it should.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.