@James,
Thanks! This is the code that ended up working:
$hero = simple_fields_fieldgroup('hero');
if (!empty($hero['video'])) {
$hero_video = $hero['video'];
} else if (empty($hero['video'])){
$hero_video = get_field('video');
} else {
$hero_video = '';
}
In simple fields first you have to call the field group array with simple_fields_fieldgroup()
Then I checked to see if simple fields is being used in the current post, if not then we move on the ACF, else leave it blank.
So far it works like a charm!
I think I’ve got something working close to what I need:
$hero = simple_fields_fieldgroup('field-group');
$hero_field = (!empty($hero['value']) ? $hero['value'] : '');
$hero_field = (!empty($hero_field) ?: get_field('value'));
I think this should allow me to continue the simple field architecture while I slowly make the switch over to ACF.
It looks like you were trying to do something similar to what I’m trying to do, could you take a look at my post and give me a hand?
https://support.advancedcustomfields.com/forums/topic/simple-fields-to-acf/