Home › Forums › Front-end Issues › Problem returning post object data › Reply To: Problem returning post object data
Hi @colinf
Were you trying to get the value outside of The Loop? Could you please try to debug it like this:
echo '<pre>';
print_r( get_field('instructor', 99) );
echo '</pre>';
Where ’99’ is the post ID where the custom field is assigned. If it shows the right data, then you need to pass the ID or put the code inside The Loop.
If that doesn’t help, could you please share the JSON or XML export file of your field group so I can test it out on my end?
Thanks 🙂
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.