Home › Forums › Backend Issues (wp-admin) › "Add All" Function › Reply To: "Add All" Function
I’m afraid this is hard to achieve, especially if you have a lot of entries in the list. That’s because ACF uses pagination for the list and will load more entries using AJAX automatically. If you want to do it, please take a look at this page to learn how to use Javascript with ACF: https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/.
Another easier method is to update the list on save. This means that the entries will be added once you saved the contents and reloaded the editor page. You can use the true/false so the user can choose if they want to add all of the entries and then use the update_field() function in the acf/save_post action hook to add them.
I hope this helps 🙂
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.