Home › Forums › Backend Issues (wp-admin) › Post Object Field: Grey out parent posts › Reply To: Post Object Field: Grey out parent posts
Hi @p_cameron
I’m not sure how I would tackle this in a final product, but here are some ideas that I had while thinking about it… they aren’t perfect solutions, but may be worth exploring if you can’t find the proper filter. I looked at all the filters as well, and can’t see any that may suit the situation.
However, you may be able to explore the select2_init here.
Ideas:
1) You could switch to a select, and dynamically populate it, settings some items to disabled (if they have children).
2) You could use AJAX in the footer to query the same Posts you are presenting in your Post Object, and then loop through them, and dynamically disable items.
Hope that helps get you moving along. Let me know how you went about it!
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.