Home › Forums › General Issues › get_field not returning value › Reply To: get_field not returning value
I don’t think this is an ACF issue anymore. I tried this standard WP call:
$expirationtime = get_post_meta($post->ID, 'expiration', true);
and got the same results – no value returned.
I think Divi is probably the culprit, so I’ll see if their support can shed any light on the problem.
Thanks again for looking at this, John.
EDIT: I have it working now, and for anyone interested in the solution, the check for the expiry field needs to be in Divi\includes\builder\module\blog.php (not in page.php)
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.