Home › Forums › Backend Issues (wp-admin) › How can I dynamically filter the list of posts? › Reply To: How can I dynamically filter the list of posts?
Got it! I didn’t realize the the Maximum Post setting was limiting the number of items that can be select or added (+). I thought that was limiting the number of items returned to the UI. Setting this this to 1 does exactly what I needed! – Thank you.
In terms of jQuery load() I have some code the uses this function to re-load the relationship field, as the categories are checked/unchecked/, this refreshed the UI, but in the case of the relationship field the contents never get reloaded, just the spinning loading icon.
jQuery( "#acf_957 " ).load("<?php echo $_SERVER['REQUEST_URI'] ?> #acf_957 > *" );
If I test this against the Post Object select field the re-load works as expected.
If I could solve the above I would be 75% there! The last 25% is how do I use ajax to force a ACF to re-query the posts based on a new category id list.
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.