Home › Forums › Backend Issues (wp-admin) › Load dynamically fields on select change › Reply To: Load dynamically fields on select change
The other issue is that your match rule always loads the postmeta.
After you change the sleect box and fire off the AJAX call, WP has not yet updated this value into the DB, so your get_post_meta will not work.
Again, take a look at the source code for ACF’s location controller to see how it gets the JS dynamic value! Best example is the page template match rule
Thanks
E
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.