This was helpful, and took me awhile to get.
I’m doing something similar.
I have a list of staff members as custom post type
Each staff member makes a monthly book pick – also a custom post type called staffpicks
ACF is running on staffpicks with a custom object field relating back to the staff member who picked it.
When using the post object field – even though the post object field will show the title of the post in the select box (which is convenient…thanks), it’s actually saving the post ID of that related post object in the database.
So when we run the meta query we have to use a value of post id – not the title of that post.
Am i getting that right?
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 21, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.