Home › Forums › ACF PRO › Variable not showing in Single Post page › Reply To: Variable not showing in Single Post page
Hi @GeekyPinoy
It is possible that where you have placed the get_field
code, WP has not yet setup the correct global $post data.
You can test this by using the function get_the_ID()
. Please use this function to test if the returned ID is indeed the post you are viewing
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.