Home › Forums › Add-ons › Repeater Field › Grab Value From Options Page Rep. Field › Reply To: Grab Value From Options Page Rep. Field
Hi @sainc
To get the value from an options page, you need to set ‘option’ as the second parameter of get_field()
or have_rows()
functions. This page should give you more idea about it: http://www.advancedcustomfields.com/resources/get-values-from-an-options-page/.
you can get the repeater value using get_field()
and then print it like this:
print_r(get_field('repeater_field_name', 'option'));
This will help you understand what is inside the repeater field. After that, you can iterate the array to check the name.
I hope this helps.
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.