Home › Forums › Front-end Issues › filter post object data based on another post object value ID › Reply To: filter post object data based on another post object value ID
Hi @phukol
In this kind of situation, the solution can be really complicated. Because when you choose the Mall object, it’s not saved in the database yet, so the Cinema doesn’t know the selected Mall ID. In this case, you need to use AJAX to modify the returned Cinema objects. There’s an old tutorial on how to do something similar but for the select field. Please check it out here: https://www.bobz.co/dynamically-populate-select-fields-choice-in-advanced-custom-fields/. I think you can modify it so it works with the post object field too.
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.