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 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.