Home › Forums › Add-ons › Gallery Field › Default Gallery Image › Reply To: Default Gallery Image
It is not possible to have a default value for teh gallery field, but you can easily write some code in your template to test the value, and if no value exists, display a static image (or any other HTML)
Check out the code examples and ‘hide empty values’ tutes to see how an ‘if’ statement works.
Hope that helps
Thanks
E
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.