Home › Forums › Backend Issues (wp-admin) › [acf/select] missing default value if "stylised UI" is enabled › Reply To: [acf/select] missing default value if "stylised UI" is enabled
Did you try adjusting the code that I posted above?
To change the currently selected value what you want to do is to look at acf/load_value http://www.advancedcustomfields.com/resources/acfload_value/
so you’ll have 2 filters, one that sets the choices in load field and the other that sets the values in load value.
The only problem with this is that the value won’t change should someone choose a different term. What I would do is to not display the taxonomy box on the right, not sure how you’d do that. Then what you’ll need to do is also create an acf/save_post filter http://www.advancedcustomfields.com/resources/acfsave_post/ and also update the terms for the post yourself as well.
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 21, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.