Home Forums Add-ons Repeater Field Add Row only works on published cpt's Reply To: Add Row only works on published cpt's

  • Hi @snixx

    I’ve just tested it on my installation and it was working on my drafted custom post type, both the add_row() and get_field() functions.

    Did you add the new post programmatically? If you did, it’s possible that your post doesn’t have the repeater value in the database yet. Keep in mind that the add_row() function will only add a row to an existing repeater. I think you can use the update_field to add an empty value. This page should give you more idea about it:

    Hope this helps.