Support

Account

Home Forums ACF PRO Programmatically updating a Group field

Solving

Programmatically updating a Group field

  • Hi,

    I’m using the RC-1 of ACF Pro and I’m loving the new Group field. It cleans up my CMS screens so much.

    However, I want to update a field programmatically. I’ve trying add_row(), add_sub_row(), update_field() etc but can’t get it to work!

    I think the issue is I have is that it’s a nested group. So, I have week_opening_times which is a group, which within it there are 7 groups for each day. Then each day has 4 fields in. The tree looks like this

    week_opening_times – group
    monday – group
    – – opening_time – time
    – – closing_time – time
    tuesday – group
    – – opening_time – time
    – – closing_time – time
    …etc…

    Does anyone know how to update week_opening_times > monday > opening_time with a PHP function?

  • I also need to be able to delete fields. Any ideas for that?

  • @mrsteveheyes did you ever solve this? I’m sitting where you were back in July right now. 🙂

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

The topic ‘Programmatically updating a Group field’ is closed to new replies.