Hi,
Could anyone tell me if it is possible to access select field values with php?
i.e.
Select Field of Genre:
Action
Horror
Sci-Fi
In the above example I wish to access the Action, Horror, Sci-Fi values from within my page using php. I could hard code the values but it makes more sense to pull them into code in case additional genre values have been added.
Thank you for your help.
Sorry if this is a simple query, I am in the process of learning the subtleties of custom fields and their use.
Kindest regards,
Martin.
Hi @wonna
To get a custom field value (from a select field or any other type of field), please use the get_field or the_field functions.
You can read this tutorial to get started.
http://www.advancedcustomfields.com/resources/getting-started/displaying-custom-field-values-in-your-theme/
Thanks
E