WP Manifestindependent plugin directory
manifest / content / acf-flexible-content-title

ACF Flexible Content Title

Display the content of a field in the title bar of your Advanced Custom Fields flexible content sections.

★ 36stars
3kcomposer installs
1.0.0latest · 7 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/mmirus/acf-flexible-content-title/archive/refs/heads/master.zip

On Packagist as mmirus/acf-flexible-content-title:

composer require mmirus/acf-flexible-content-title
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Display the content of a text sub field in the title bar of your Advanced Custom Fields flexible content sections to make editing your page sections easier to navigate.

I recommend pairing this with a plugin that will help you collapse all of your flexible content sections, such as ACF Repeater & Flexible Content Collapser.

Usage

This plugin looks for a sub field named section_title in the flexible content field. Add a field with that name to your layouts, or use the filter to change which sub field is used.

Section Title Field

Changing the Field Used

You can filter that as follows if you wish to use a different sub field:

// change the sub field used in flexible content field title
add_filter('acf_flexible_content_title_field', function($title_field, $flexible_field, $layout) {
  return 'my_text_sub_field';
}, 10, 3);

Arguments

  • $title_field (string) the name of the title field to be displayed
  • $flexible_field (array) the flexible content field settings
  • $layout (array) the layout settings

Because the flexible content field and layout settings arrays are passed, if desired you could add conditional logic and specify different title fields for different flexible content fields or layouts.

Installation

There are three options for installing this plugin:

  1. With composer from Packagist: composer require mmirus/acf-flexible-content-title
  2. With GitHub Updater
  3. By downloading the latest release ZIP from this repository and installing it like any normal WordPress plugin

Screenshots

Expanded flexible content layout

Expanded Flexible Content Layout with Title Field

Overview of flexible content layouts

Expanded Flexible Content Layout with Title Field

Releases

1 release.

Tag
Published
1.0.0 latest
Nov 10, 2018 7 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.