Home › Forums › Backend Issues (wp-admin) › get_field not recognised › Reply To: get_field not recognised
Now we’re getting somewhere!
What is your field type? Are they choosing via radio buttons or select?
To get the value (not the name) of your radio/select, you just do it how I explained above:
echo '<div class="' . get_field('header_bullets_and_testimonials_colour') . '">';
Just make sure your field ‘Choices’ are setup to work as classes… so it would be:
class-one | Class One
class-two | Class Two
… as seen in the first image here: http://www.advancedcustomfields.com/resources/checkbox/
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.