I am not a developer, but have inherited a WordPress site that has ACF installed. There are several pages already set up that utilize custom fields. I need to add one field to one of the pages. I have figured out how to add the field to the page in the ‘field groups’ area. I see the field (a WYSIWYG box) in the WP admin, have added some test text and have hit ‘update’, but when I refresh I don’t see my test text on the front end. Is there a step I am missing to get my new field to display on the front end. Thanks in advance for any guidance you can provide in a way a non-developer can understand!
You have to edit the template that the page uses https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/
Hello again – I’m still tinkering around to see if I can figure out how to get my new fields to display on the front end of my website. In my ‘custom fields’ area in the admin, there is an ‘export’ tab that has buttons to generate xml and php code. Are these buttons generating the updated code that I need to then paste into my ‘editor’ area? I’ve tried searching in the forums to better understand how it works, but unfortunately much of it is over my head.
Thank you for your patience with my inexperience.
No. The export functions in the plugin are for exporting the field groups so that they can either be created using code or imported into another site. There are plugins that will give you basic code for your templates. This is one of them https://wordpress.org/plugins/acf-theme-code/
If you’re using simple fields (I.E. not repeaters or flex fields) the code you need is extremely simple. Adjusting the HTML of the theme would could be more difficult.
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 29, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.