{"id":18177341,"url":"https://github.com/mmirus/acf-flexible-content-title","last_synced_at":"2025-04-01T18:31:20.983Z","repository":{"id":57018388,"uuid":"157012205","full_name":"mmirus/acf-flexible-content-title","owner":"mmirus","description":"Display the content of a field in the title bar of your Advanced Custom Fields flexible content sections.","archived":false,"fork":false,"pushed_at":"2018-11-10T20:39:15.000Z","size":44,"stargazers_count":35,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T22:39:28.478Z","etag":null,"topics":["advanced-custom-fields","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmirus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-10T19:01:57.000Z","updated_at":"2024-12-29T21:52:52.000Z","dependencies_parsed_at":"2022-08-22T11:30:56.571Z","dependency_job_id":null,"html_url":"https://github.com/mmirus/acf-flexible-content-title","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmirus%2Facf-flexible-content-title","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmirus%2Facf-flexible-content-title/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmirus%2Facf-flexible-content-title/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmirus%2Facf-flexible-content-title/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmirus","download_url":"https://codeload.github.com/mmirus/acf-flexible-content-title/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246639855,"owners_count":20810084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advanced-custom-fields","wordpress","wordpress-plugin"],"created_at":"2024-11-02T17:12:54.555Z","updated_at":"2025-04-01T18:31:20.734Z","avatar_url":"https://github.com/mmirus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ACF Flexible Content Title\n\n- [Usage](#usage)\n- [Changing the Field Used](#changing-the-field-used)\n- [Installation](#installation)\n- [Screenshots](#screenshots)\n\nDisplay 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.\n\nI recommend pairing this with a plugin that will help you collapse all of your flexible content sections, such as [ACF Repeater \u0026 Flexible Content Collapser](https://wordpress.org/plugins/acf-repeater-flexible-content-collapser/).\n\n## Usage\n\nThis 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.\n\n![Section Title Field](/screenshots/section_title_field.png)\n\n## Changing the Field Used\n\nYou can filter that as follows if you wish to use a different sub field:\n\n```php\n// change the sub field used in flexible content field title\nadd_filter('acf_flexible_content_title_field', function($title_field, $flexible_field, $layout) {\n  return 'my_text_sub_field';\n}, 10, 3);\n```\n\n**Arguments**\n\n- `$title_field` (string) the name of the title field to be displayed\n- `$flexible_field` (array) the flexible content field settings\n- `$layout` (array) the layout settings\n\nBecause 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.\n\n## Installation\n\nThere are three options for installing this plugin:\n\n1. With composer from [Packagist](https://packagist.org/packages/mmirus/acf-flexible-content-title): `composer require mmirus/acf-flexible-content-title`\n2. With [GitHub Updater](https://github.com/afragen/github-updater)\n3. By downloading the latest release ZIP from this repository and installing it like any normal WordPress plugin\n\n## Screenshots\n\n_Expanded flexible content layout_\n\n![Expanded Flexible Content Layout with Title Field](/screenshots/flexible_content_expanded.png)\n\n_Overview of flexible content layouts_\n\n![Expanded Flexible Content Layout with Title Field](/screenshots/flexible_content_overview.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmirus%2Facf-flexible-content-title","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmirus%2Facf-flexible-content-title","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmirus%2Facf-flexible-content-title/lists"}