Home › Forums › General Issues › Automatically fill image field with post_thumbnail › Reply To: Automatically fill image field with post_thumbnail
Hi Hube2,
I tried it out, tied it to the right field key (the one I found with the ‘_field_name’ in the database), but it still does not fill the image field unfortunately. What format should I choose when creating the field? It’s ID at the moment….
All the best
physalis
Edit: Just to make sure, I put this into my functions.php, right?
Edit 2: There is a small typo, no ‘ needed after $post_id in line 5. Still not working :D.
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.