Home › Forums › Front-end Issues › Post Object: Selection does not show up in Custom Post Type › Reply To: Post Object: Selection does not show up in Custom Post Type
Hi @nataliette
Sounds like you need to do some debugging and make sure that ACF can load the value as expencted.
Start by testing the value of:
global $post;
echo $post->ID;
Is the global $post->ID the correct Company ID?
Your code uses the setup_postdata function. This can be seriously dangerous if you don’t fully understand what it is doing to the global objects.
Some simple debugging through your template files will help to find the issue.
Good luck!
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.