Home › Forums › General Issues › get_post_meta() works but get_fields() doesn't › Reply To: get_post_meta() works but get_fields() doesn't
Hey @elliot
Yeah
$post->ID = the right post ID (1682)
$link = get_post_meta( $post->ID, 'external_link', true );
gives me the string I need ‘this is the link’
but
$link = get_field("external_link",$post->ID); = nothing,
if I do a var_dump of $link it shows bool(false)
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.