admin管理员组文章数量:1122832
I have thousands of posts with attached files. These attached files are part of Advanced Custom Fields Pro. However, they are not showing on the front end for the posts.
These files are utilizing the Repeater field and the Form subfield in ACF (see image attached).
I saw in the ACF documentation to add the snippet of code and I added the basic loop and replaced the fields with the field names ('repeater_field_name'='collection-attached_documents') and ('sub_field'='attached_documents'): /
However my website is currently on the Twenty Twenty Four Theme and I'm only able to locate a single.html file to update all posts. I can't add this PHP code to my file as it doesn't work.
Any advice on which file to update, and if I am correctly inserting the code from the documentation so it shows up on the front end for all posts with these attached files?
本文标签: phpHow to get ACF field to show up on all posts on front end
版权声明:本文标题:php - How to get ACF field to show up on all posts on front end? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736300006a1930662.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论