I sincerely apologize if this issue has been covered in the past, but I haven’t been successful in finding a resolution.
I’ve added several custom fields and am attempting to access them using the get_field() method. If I use the command:
get_field('page_color');
I receive a value as expected. It’s pulling the information attached to the current page, no worries. However, when I attempt to loop through with:
get_field('page_color', $tl->ID);
I’m getting no value returned. I’m constructing this in the functions.php section of a child theme.
Thanks in advance
I have resolved my own issue. I am working with a menu…and the menu is giving me an ID of the menu object, not the page object.
I confused myself.