Home Forums Gutenberg Passing Data to ACF Blocks


Passing Data to ACF Blocks

  • Hi, we’re using ACF to create custom Gutenberg blocks. In our theme (Sage 10) we are able to create variables that get passed down to each corresponding Blade file.

    An example is a $currentState variable, which returns a taxonomy item based on the post that the current user is viewing.

    That variable loads as expected on the front end. However, on the back end it throws an error as Gutenberg isn’t aware that $currentState exists.

    Does anybody have suggestions for how to pass data of that nature to Gutenberg?


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.