Home Forums Backend Issues (wp-admin) Repeater Field in Options page


Repeater Field in Options page

  • Hi,

    I have strange issue with repeater field.

    These fields are set to show on Options page ‘Fields’.
    I have entered some test values, but when i try to get_field, I get nothing.

    I have tried with some other simple text field, and it works.

    $property_type = get_field( ‘field_property_type’, ‘options’ );
    print_r( $property_type );

    this prints out nothing.
    I’m running a WP Multisite on localhost.
    I can see data in database table for wp_options, but cannot get them with the_field not with get_field.

    Any advice pls?


  • Well ain’t this a tricky one.
    I have found problem, my fields are named: field_myname.
    this ‘field_’ prefix I use makes problem while saving data.
    I have renamed it to ‘fld_myname’ and now it works.

    Can you imagine that.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Repeater Field in Options page’ is closed to new replies.