Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Issue with Nested ACF Dynamic Data in GeneratePress and GenerateBlocks

  • Hello,

    I am trying to use the compatibility with nested ACF dynamic data in GeneratePress and GenerateBlocks 2.0, but I encountered an issue.

    I have an ACF field group called “Información de la página” with the key group_6441176d06bd7. Inside this group, I have a text field called “Dominio”, with the field name acf_dominio. The data is correctly stored and confirmed.

    When I try to insert it into a container using GenerateBlocks, I follow these steps:

    Add a Text module.
    Use the “Open Dynamic Tags” option.
    In the first dropdown “Select Dynamic Tag”, I expect to see my ACF fields available.
    The issue is that the field group does not appear, nor do its nested fields. The field group has REST API enabled.

    Additional details:

    I am using GenerateBlocks 2.0.

    Questions:

    Is there any additional configuration required for nested ACF fields to appear?

  • Hi there,

    If it’s a group field, you can try using the query block to pull the data, set the query type to Post meta, then select or enter your Group field slug.

    In the query block, use a text block to pull the subfield, try setting the dynamic tag to {{loop_item key:acf_dominio}}

    Let me know if this helps!

  • Hi there,

    I have a web development setup using Advanced Custom Fields (ACF) where clients can select banner groups, enter text, and input various data – all managed through ACF.
    Until now, I’ve been implementing everything using shortcodes and custom code, but now that GenerateBlocks has native integration with ACF and field groups, I’d prefer to build it this way, as it seems easier to maintain.

    However, I’m unable to get it working.

    Issues I’m facing:
    1. ACF Fields Not Showing in Dropdowns
    • My ACF fields do not appear in the “Select Dynamic Tag” dropdown, even though I have enabled the REST API for the field group.
    • Is there an additional step required to make them appear?
    2. Unable to Display the Field Value
    • I tried using the Query Loop Block as suggested:
    • Set the Query Type to Post Meta.
    • Entered my Group Field Slug.
    • Added a Text Block and used the dynamic tag {{loop_item key:acf_dominio}}.
    • However, the field does not display any data on the front end.

    I’m not sure if I’m missing something in the configuration, but I’d really appreciate a detailed guide or documentation on how to properly integrate ACF nested fields with GenerateBlocks 2.0.

    Is there any official documentation or a step-by-step tutorial on this?

    Thank you for your help!

  • 1. ACF Fields Not Showing in Dropdowns

    Are you editing a block element or a page? The ACF field will only show if the current post (which you are editing now) has the field, so if you are editing a block element, it does not have those ACF fields.

    However, even if the fields are not shown in the list, you can manually type or paste the field name in.

    • Added a Text Block and used the dynamic tag {{loop_item key:acf_dominio}}.

    Can you provide an admin login for me to check the backend? I’ll need to check the ACF field setup and the way you are pulling it.

    Let me know 🙂

    Is there any official documentation or a step-by-step tutorial on this?

    Yes, check this:https://learn.generatepress.com/blocks/block-guide/getting-started-generateblocks/dynamic-tags/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.