I have been asked to update a clients website who is using ACF.
I have created a new Field group, made sure my settings for this group matches what they have done previously and then updated their template php file as they have done previously. I see no difference comparing what I have done to what has previosuly been done.
<?php $climate_change_pages = get_field('climate_change_pages');
foreach($climate_change_pages as $cp):
?>
The line above returns an error “Invalid argument supplied for foreach()”.
Looking at the databse under the table “wp-postmeta” there is no row where the ‘meta_key’ is the field name although the new field shows in the ACE dashboard.
I might be missing something obvious as I havent used this before but I have been banging my head against the wall for hours now.
Any ideas as to why this would be happening? Any help would be greatly appreciated!
Ignore it, I was being dumb, Also cant see a way to remove a post on here so there ya go