Home » WordPress » Advanced Custom Fields Set Image Field as Post Featured Image

Advanced Custom Fields Set Image Field as Post Featured Image

Are you trying to set the image field as a post featured image on your WordPress website? Then here we have a simple solution to do that. To set the image field as featured thumbnail for your post you need to use acf/save_post.

Use the below function in your WordPress functions.php file. This function will help you to save the image field as a post featured image with the help of ACF image field name and _thumbnail_id.

Note: You need to replace post_image to which you create an image field name in the above function

Conclusion:

I hope this article will help you to set the image field as a featured image on your WordPress website. If you have any doubts about this topic let me know in the comment section and if you love this article share it with your friends.

Was this article helpful?

Yes No
×

How can we improve it?

×

We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest

Mraj

Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

One thought on “Advanced Custom Fields Set Image Field as Post Featured Image

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top