Home › Forums › ACF PRO › Get all field groups related to post › Reply To: Get all field groups related to post
So.. I removed the $post_id and all field groups are returned. With the post_id no field groups are returned. I hardcoded the ID so that I was sure the correct value was being passed, but I still get an empty array. I am not trying to modify the values. I just want to loop through each field group, and print a different layout for each one.
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.