Support

Account

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.