탐색 건너뛰기

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using the GreenShift Blocks and the dynamic text feature from the Greenshift Query and Meta Addon, values from an ACF option page do not display their translations on the frontend. This issue occurs even if the ACF option fields are correctly translated.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Go to WPML > Settings > Custom XML Configuration
  • Paste the following code and click “Save”:
  • <wpml-config>
        <gutenberg-blocks>
            <gutenberg-block type="greenshift-blocks/text" translate="1" label="Advanced text">
            <xpath>//*[contains(@class, 'gspb_text')]</xpath>
            <key name="text" />
            <key name="textContent" />
            <key name="customAnchor" />
            <key name="dynamictext">
              <key name="dynamicField" />
            </key>
          </gutenberg-block>
      </gutenberg-blocks>
    </wpml-config>
    
  • Locate the original page containing this block and save it again.
  • Edit the translation and ensure the ACF option name is translated.

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>