Advanced Custom Fields

The full Advanced Custom Fields (ACF) integration is currently being built. However, you can already show some fields in your loops using the Block Bindings API.

For example, the recipes underneath are displayed with Better Loop. The recipe duration is an ACF field.

  • 1 hour

    Carrot Cake

  • 45 mins

    New York cheesecake

  • 30 mins

    Pumpkin Pie

In the example above, the duration is an ACF text field with key recipe_duration. In your loop, add a new Paragraph block and replace it with the following code:

<!-- wp:paragraph {
    "metadata":{
        "bindings":{
            "content":{
                "source":"acf/field",
                "args":{
                    "key":"recipe_duration"
                }
            }
        }
    }
} -->
<p>Placeholder</p>
<!-- /wp:paragraph -->

For this to work, you also need to make sure to enable the “Allow Access to Value in Editor UI” toggle under the “Presentation” tab when editing a field.