Also (maybe it makes a difference), my custom fields are for a site Option Page, not custom post fields…
https://www.advancedcustomfields.com/resources/options-page/
so I’m calling their values this way:
$variable = get_field(‘field_name’, ‘option’);