Home Forums General Issues How to add new ACF fields by PHP?


How to add new ACF fields by PHP?

  • The whole day I have been working on this trouble but could not find the needed information. Okay, I need to add new fields in the ACF group by PHP. I tested function acf_add_local_field. Nothing working. I see that function go to $store->set( $key, $field )->alias( $key, $name );. And everything should be okay but fields are not added. Please, help me. How I can add new ACF fields by PHP in the ACF group? Only fields without group. I have needed a group.

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

You must be logged in to reply to this topic.