Support

Account

Home Forums Gutenberg Reference ACF Options Page information in Gutenberg custom block

Unread

Reference ACF Options Page information in Gutenberg custom block

  • Hi, I have an ACF Options Page that stores site-wide information such as, business name, address, phone and email address.

    What I’d like to do is reference this information in a Gutenberg block.

    I’m not using ACF Block but instead building in the standard WP way which I’m now quite confident doing (e.g. https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/writing-your-first-block-type/)

    Referencing the information in the frontend using PHP is easy, but I can’t find a way of referencing the information in JSX so it displays in the block when editing a page in the backend. The block only needs to display the information, it doesn’t need to make any changes or store the information – the ACF Options Page will take care of that.

    Does anyone know of a way of doing this? Hopefully it’s a silly question to ask and easy to answer.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.