Home › Forums › Add-ons › Options Page › Save Options (default values) on theme activation (LITE mode) › Reply To: Save Options (default values) on theme activation (LITE mode)
Hi @emilolsson
Your second comment contains the code I would use (if statement), however, I would also use the loop you have developed in your 3rd comment.
It should work.
Perhaps you tested the code when you had a value in the options table? This would cause the if statement to do it’s job and fail the update.
Does that help?
Can you debug the function? ie: print_r and die? This will show you where it gets up to / what the issue is – if any
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.