Home › Forums › Front-end Issues › Problem returning post object data › Reply To: Problem returning post object data
Hi @colinf
Could you please print_r()
the get_the_ID()
function like this:
print_r(get_the_ID())
Does it show the right ID? If it’s, then I think you can pass it to the get_field()
function like this:
$post_object = get_field('instructor', get_the_ID());
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.