Advanced Custom Fields

ACF values are available under the custom_fields property

{{ post.custom_fields.subtitle }}

Return format

Image, post, term and user are converted to entity if the return type entity is selected in the field settings

ACF field settings

Specific fields

Flexible content

Content is parsed into an array of object, acf_fc_layout is renamed as type and remaining content is included into the data property

Repeater

Content is parsed into an array

Content is parsed into an array of Image

Image

Content can be converted to Image entity

Post object

Content can be converted to Post entity

Relationship

Content can be converted to an array of Post entity

Last updated

Was this helpful?