Home › Forums › General Issues › How can I set a default image for an image field? › Reply To: How can I set a default image for an image field?
You can set the default image ID by setting $field['default_value']
in an acf/prepare_field filter.
You can add a setting field to image fields to do this but this will not completely work because the script that displays images is not loaded on the ACF field group editor page. At one time someone had posted code for how to load the script but I can no longer find it.
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.