Support

Account

Home Forums General Issues Get group structure

Helping

Get group structure

  • Hello,

    I’m working on an importer and I was wondering if it is possible somehow to get the structure of a group, given a key I would like to know which fields it contains. In other words I would like to get the content of a file in the acf-json folder but with a php function given a particular key. Is it possible?

    many thanks
    Francesco

  • 
    $fields = acf_get_fields('group_XXXXXXX');
    

    returns the fields in the field group.

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

You must be logged in to reply to this topic.