Home › Forums › General Issues › Default values by option page on first load › Reply To: Default values by option page on first load
@hube2 thanks for your reply. With both methods, then I would have to do this for each field? This is very complex with over 50 fields. 🙁
Is there a way to make a virtual click by the option page update button? 🙂 Can I use a acf function for this?
I can not understand this exactly.
$value = get_field('my_options', 'option');
Is one of my option fields with a default value.
$value = 'my-default-value';
But what is ‘my-default-value’ or the content of this? The value comes from the field. And I look for this directly after the theme setup.
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.