ACF Flexible Content Title
Display the content of a field in the title bar of your Advanced Custom Fields flexible content sections.
by Matt Mirus · github.com/mmirus/acf-flexible-content-title · website
★ 36stars
3kcomposer installs
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mmirus/acf-flexible-content-title/archive/refs/heads/master.zipAlso on Packagist as mmirus/acf-flexible-content-title:
composer require mmirus/acf-flexible-content-titleDeclares an update source (https://github.com/mmirus/acf-flexible-content-title), so updates arrive through the plugin's own updater.
From the readme
ACF Flexible Content Title
- Usage
- Changing the Field Used
- Installation
- Screenshots
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 sectiontitle 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.
Changing the Field Used
You can filter that as follows if you wish to use a different sub field:
Arguments
- $titlefield (string) the name of the title field to be displayed
- $flexiblefield (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 re
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 1.0.0 | Nov 10, 2018 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.