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