Home › Forums › Front-end Issues › Query custom post type depending on post object inside a repeater › Reply To: Query custom post type depending on post object inside a repeater
ACF saves the ID instead of the object in the database to minimalize the storage needed. This means that we need to compare against the ID when you query the database.
The options you’ve set is used when you use the get_field()
and the the_field()
function. It will allow ACF to convert the ID to the selected type automatically.
I hope this makes sense 🙂
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.