Home Forums Backend Issues (wp-admin) How to retrieve a group field key ?


How to retrieve a group field key ?

  • Hello,

    As I want to use the ‘acf_add_local_field’ function to add a field, I need to get the key of the parent group field.

    I have been looking in the doc but could not find a solution, any idea ?

    Much thanks


  • There are a couple of ways to get this.

    1) When editing the field group look at the slug field
    2) Go to the export page and export the field group, it will include the key

  • Actually it’s very easy:
    in a particular field group go to Screen Options and check slug and Field Keys so they will appear on screen.

  • How can this be done by code (php) ?

    I just found out the key is the post_name.

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

The topic ‘How to retrieve a group field key ?’ is closed to new replies.