Home › Forums › General Issues › Return value of Post Object field ? › Reply To: Return value of Post Object field ?
Hi @n1smo
ACF will only ever save the ID into the DB, never the object. The return format is something that is run AFTER loading the DB value.
In short, yes you can follow the relationship tutorial, however, if your post_object field saves 1 single value (no a multi-select), then you do not need to use a LIKE compare, you can simply look for posts with the custom field value of $post_id
Thanks
E
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.