Home › Forums › General Issues › get_field('field', $page_id) not returning a value. › Reply To: get_field('field', $page_id) not returning a value.
I’m not quite understanding the problem here. First you say:
If I call the field in the custom section I get a result (15), so I know the field has a value.
And then you say:
I can give the shortcode a parameter for ID, but in that custom section, I can’t get the actual ID to put it in the shortcode.
Also, what do you get if you do var_dump($id_i_need)
?
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.