Support

Account

Home Forums General Issues add_row returning false

Helping

add_row returning false

  • Hello,

    I’m trying to use add_row to populate a repeater field, however it keeps returning false and I have no idea why.

    Is there anyway to turn on some kind of debugging or retrieve what is causing the failure?

    Thank you,
    Andrew

  • Are you using the field names or the field keys? If you are trying to populate a repeater that does not exist yet then you need to use the field key instead of the field name when using any of the acf update functions, including add_row(). This is outlined in the docs https://www.advancedcustomfields.com/resources/add_row/

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

The topic ‘add_row returning false’ is closed to new replies.