interactiveRob
11/5/2018 - 8:45 PM

Check if ACF group has content

Check if ACF group has content

function acf_group_has_content($group){

	/* Necessarily checks if a groups sub_fields have content
	 because the ACF group always returns true even when the 
	 group is empty */
	 
	foreach ($group as $item):
		if($item):
			 return true;
		endif;
	endforeach;
}