admin管理员组文章数量:1122832
A couple of images will be easier to describe what I need to do:
Here I am entering a new product's title and description, which is simply a repeater with 2 texts.
When I validate, I get my entry with the name "product information", as it is the name of the ACF layout. But I would like instead for the title to become "product information : super shoes". That would help the editor to more easily locate the different entries.
Can this be achieved?
A couple of images will be easier to describe what I need to do:
Here I am entering a new product's title and description, which is simply a repeater with 2 texts.
When I validate, I get my entry with the name "product information", as it is the name of the ACF layout. But I would like instead for the title to become "product information : super shoes". That would help the editor to more easily locate the different entries.
Can this be achieved?
Share Improve this question asked Jun 30, 2024 at 14:23 GynkoGynko 1 2- we would definitely need to see the code you're using to display the fields. – rudtek Commented Jul 1, 2024 at 5:42
- The displayed fields are within the Wordpress dashboard, so there is no code. Fields are all set in the ACF plugin. – Gynko Commented Jul 2, 2024 at 4:02
1 Answer
Reset to default 0ACF has a built in filter for their flexible rows which you may be able to leverage/adjust for your own use on your repeater, or investigate and build your own:
apply_filters( 'acf/fields/flexible_content/layout_title', $title, $field, $layout, $i );
Their documentation covers this here:
https://www.advancedcustomfields.com/resources/acf-fields-flexible_content-layout_title/
本文标签: Custom title in a wordpress page edit mode with ACF fields
版权声明:本文标题:Custom title in a wordpress page edit mode with ACF fields 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736301746a1931284.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论