Home › Forums › General Issues › Default Field Value on an Options Page › Reply To: Default Field Value on an Options Page
If you get the field using the field key it should return the default value.
The problem isn’t so much the missing value as it is the missing field key reference for the value.
I personally have always coded default values in. The reason, I may add fields in the future, these fields will not have values for existing posts. I can never count the data being there, any number of things could cause the value to not be set. But that’s just me.
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.