Home › Forums › ACF PRO › Options page in front-end › Reply To: Options page in front-end
Right now I’ve got the following working:
acf_local()->get_field_groups()
.acf_get_local_fields( $fieldgroup_key )
.foreach ( $groups as $fields ) : foreach ( $fields as $field_key => $field_data ) : printf( ... ); endforeach; endforeach;
action=""
).update_field( $field_key, $value, 'options' )
.Currently this works fine for non-JS infused fields, such as selects, text fields and so on. I’m working on getting the color picker working, which in the end should use a hidden text field anyway.
Is there a more correct way to do this or should I wrap this into a plugin of sorts?
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.