Home › Forums › Front-end Issues › CPT Loop not returning get_field but does get_post_meta › Reply To: CPT Loop not returning get_field but does get_post_meta
Thanks for the screenshot, this shows that the data is there along with the reference values.
I’m not sure why your code is not returning any data. Lets now look at 2 other factors:
1. In which file are you running the get_field code?
2. Is the post with ID = 64, a published post? Or is it an autosave / draft? You can see this information in the wp_posts table?
Are you able to load ACF data anywhere else in the site? Is it just this one post, or is it completely not working?
The issue may turn out to be a conflict with another plugin? You can check this by creating a new blank WP site with just ACF, and recreate the fields / get_field code to test it out.
Hope that helps
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!
© 2022 Advanced Custom Fields.