Home › Forums › General Issues › Fetching default image option › Reply To: Fetching default image option
I’ve been looking into this. As with most things in ACF, when a field has never been set you need to use the field key to get the field value. If you use the field key like
get_field('field_0123456');
then ACF will return the default value when a field has never been set.
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.