Support

Account

Home Forums Gutenberg get_fields() outside ACF Block

Unread

get_fields() outside ACF Block

  • Hello,
    I’m looking for a function or another method to format block data coming from the parse_blocks function so that it resembles the structure returned by get_fields() inside a block’s render_callback.

    The issue is that parse_blocks doesn’t prepare repeater elements as arrays, for example — it outputs things like slider_0_heading, etc.

    I’ve written a helper function to handle this, but I’m concerned there might be too many edge cases. So I’m looking for a native ACF function or a proven method you use to process this kind of data.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.