Support

Account

Home Forums Backend Issues (wp-admin) ACF make a post private if there are no rows in a repeater field. Reply To: ACF make a post private if there are no rows in a repeater field.

  • Hi @damon ,

    Thanks for reaching out to us.

    You can check the repeater row counter after your method as

    $row = count( get_field('repeater_field') );

    You can then place an if to check if the number of rows is 0 then update post to a draft.

    Hopefully this helps 🙂