Home › Forums › General Issues › Understanding Return Format: Post Object vs Post ID › Reply To: Understanding Return Format: Post Object vs Post ID
@floatingpoint Just the Post Object field.
With further testing, it seems that it is the Taxonomy field that returns an ID instead of a Term Object even when the return format is Term Object.
Or maybe this is happening only when I access properties directly instead of using get_field()
. I would expect the return type to save the data in that format, but maybe it is storing only IDs in any case, and only using ACF functions does it return the specified format.
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.