Home › Forums › General Issues › Setting custom field image as featured image › Reply To: Setting custom field image as featured image
Yes, it was too obvious. I mentally smacked myself in the head when I saw it because like everyone else I’ve been using an acf/save_post action on pretty much every site I’ve built since starting to use ACF, quite a few years ago now. Simply because I wanted to make the featured image required and be able to enforce specific image sizes for different sites/post types.
The only real problem with using this method is that get_fields()
will not return this field. ACF ignores all fields that start with an underscore. These fields are also hidden by WP. But since I’ve never used get_fields()
it works out fine for 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.