You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,22 @@
1
1
# ACF Flexible Content Title
2
2
3
+
-[Changing the Field Used](#what-field-does-the-title-come-from)
4
+
-[Installation](#installation)
5
+
-[Screenshots](#screenshots)
6
+
3
7
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.
4
8
5
-

9
+
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](https://wordpress.org/plugins/acf-repeater-flexible-content-collapser/).
6
10
7
-

11
+
## Usage
8
12
9
-
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](https://wordpress.org/plugins/acf-repeater-flexible-content-collapser/).
13
+
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.
14
+
15
+

10
16
11
-
#What field does the title come from?
17
+
## Changing the Field Used
12
18
13
-
By default, this plugin looks for a sub field named `section_title` in the flexible content field. You can filter that as follows if you wish to use a different sub field:
19
+
You can filter that as follows if you wish to use a different sub field:
14
20
15
21
```php
16
22
// change the sub field used in flexible content field title
@@ -34,3 +40,13 @@ There are three options for installing this plugin:
34
40
1. With composer from [Packagist](https://packagist.org/packages/mmirus/acf-flexible-content-title): `composer require mmirus/acf-flexible-content-title`
35
41
2. With [GitHub Updater](https://github.com/afragen/github-updater)
36
42
3. By downloading the latest release ZIP from this repository and installing it like any normal WordPress plugin
43
+
44
+
## Screenshots
45
+
46
+
_Expanded flexible content layout_
47
+
48
+

49
+
50
+
_Overview of flexible content layouts_
51
+
52
+

0 commit comments