I’m attempting to use the Block Binding API with WP 6.7 and ACF Pro 6.3.12.
I have CPT, Case Study, with an ACF text field, the_challenge. I want that fields value to be the content of a paragraph block on the case study card inside the query loop block.
<!-- wp:paragraph {"align":"center","metadata":{"bindings":{"content":{"source":"acf/field","args":{"key":"the_challenge"}}}},"fontSize":"label-small"} -->
<p class="has-text-align-center has-label-small-font-size">This will display the challenge on the front end.</p>
<!-- /wp:paragraph -->
The above looks very promising in the editor. (See screenshot)
But in the front end, no content is rendered, just and empty paragraph tag.
I’m a little stuck on how to proceed with debugging from this point. I’ve tried other fields. I’ve tried in the single content rather than inside a query loop.
I think I found the issue. There is a field setting, “Allow Access to Value in Editor UI” that must be enabled before you can use the field with the Block Binding API.