This recipe shows how to use Flexible Content to give content managers the power to build custom landing pages by choosing, ordering, and filling in pre-designed sections.
Step 1: Create the Flexible Content Field Group
Go to Field Forge > Field Groups and click New Field Group
Title it Landing Page Builder
Add a Flexible Content field (PRO) labeled Page Sections with name page_sections
The field group editor has no input for the text of the add button, so editors see the default text, Add Layout
Step 2: Define the Layouts
Add the following layouts to the Flexible Content field. A sub-field inside a layout has these settings in the editor: Label, Name, Type, Width %, Default, Required and Instructions, and, for some types, Placeholder (Text, Textarea, Number, Email and URL), Character limit (Text and Textarea), Layout (Checkbox and Radio Button) or Choices (Select, Checkbox, Radio Button and Button Group). Inside a layout Field Forge saves Default and Required but does not use them: the input starts empty, no asterisk is shown and nothing is checked when the page is saved, so the tables set no settings. The tables below use Text sub-fields for the style, column and display fields: editors type the value, for example primary, secondary or outline for a button style. You can make such a field a Select sub-field and enter the values in its Choices box, one per line, so editors pick one.
Layout 1: Hero Section
Sub-field
Type
Settings
Headline
Text
None
Subheadline
Textarea
None
Background Image
Image
None
Button Text
Text
None
Button URL
URL
None
Button Style
Text
None
Layout 2: Features Grid
Sub-field
Type
Settings
Section Title
Text
None
Section Subtitle
Textarea
None
Features
Repeater
Sub-fields: Icon (Image), Title (Text), Description (Textarea)
Columns
Text
None
Layout 3: Testimonials
Sub-field
Type
Settings
Section Title
Text
None
Testimonials
Repeater
Sub-fields: Quote (Textarea), Author Name (Text), Author Photo (Image), Company (Text), Rating (Number)
Display Style
Text
None
Layout 4: Call to Action
Sub-field
Type
Settings
Heading
Text
None
Description
Textarea
None
Button Text
Text
None
Button URL
URL
None
Background Color
Color Picker
None
Text Color
Color Picker
None
Layout 5: FAQ Section
Sub-field
Type
Settings
Section Title
Text
None
Questions
Repeater
Sub-fields: Question (Text), Answer (Textarea)
Display Style
Text
None
Layout 6: Pricing Table
Sub-field
Type
Settings
Section Title
Text
None
Plans
Repeater
Sub-fields: Plan Name (Text), Price (Text), Billing Period (Text: Monthly or Yearly), Features (Textarea), Button Text (Text), Button URL (URL), Highlighted (True/False)
Show monthly/yearly toggle
True/False
None
Step 3: Set Location Rules
Set: Post Template is equal to your Landing Page template, picked from the list of the page templates of your theme (you need a Landing Page template in your theme)
Alternatively, target a specific page or post type
Save the field group
Step 4: How Content Managers Build a Landing Page
Create a new Page and select the “Landing Page” template
Scroll to the “Landing Page Builder” metabox
Click Add Layout and choose Hero Section
Enter the headline, subheadline, upload a background image, and set the button text and link
Click Add Layout again, choose Features Grid
Add a section title and create feature items with icons, titles, and descriptions
We use analytics and marketing cookies (Google Analytics, Google Ads, Meta) to understand traffic and improve the site. Strictly-necessary cookies are always on. See our Privacy Policy.