Table of Contents

Advanced Custom Fields Flexible Content Addon

Description

The Flexible Content field provides a simple, structured, block-based editor.

Using layouts and sub fields to design the available blocks, this field type acts as a blank canvas to which you can define, create and manage content with total control.

Settings

  • Layouts
    Defines the layouts available when editing content. Each layout contains Label, Name, Limit, Display and Field settings.
  • Button Label
    The text shown in the ‘Add Row’ button.
  • Minimum Layouts
    Sets a limit on how many layouts are required.
  • Maximum Layouts
    Sets a limit on how many layouts are allowed.

Advanced Custom Fields Flexible Content Addon

Template usage

The Flexible Content field returns a multi-dimensional array containing the layouts and their sub field values.

Accessing the value is done via the have_rowsthe_rowget_sub_field, and the_sub_field functions.