Hi there,
I am trying to use the File (file ID) custom field. It works fine in the admin section, but I can’t get anything to display on the front end. Here’s my code in PHP Fiddle. Can you take a look?
http://phpfiddle.org/main/code/n7t-kjm
Thank you,
Stephanie
Hi @StephBertha
First guess is that:
$attachment_id = get_field('ab_materials_operating');
should be:
$attachment_id = get_sub_field('ab_materials_operating');
Thanks
E
Perfect! Thank you, that worked!