Support

Account

Home Forums Backend Issues (wp-admin) [q] Is it possible to add fields automatically after adding in other group? Reply To: [q] Is it possible to add fields automatically after adding in other group?

  • Hi @razider

    You can check the field data by using the field group ID like this:

    echo "<pre>";
    
    // get the field group data by using the ID
    $fields = acf_get_fields(99);
    
    // loop and print the fields data
    foreach( $fields as $field ){
        
        // print it
        print_r($field);
        
    }
    
    echo "</pre>";

    Where “99” is the field group ID.

    I hope this helps 🙂