Home › Forums › General Issues › How to insert featured image from related post › Reply To: How to insert featured image from related post
Using the setup_postdata
function can cause many problems. I would advise that you don’t use this function.
It is always possible to load in data (feature image) from a specific post, by passing in the $post_id parameter ( $post->ID )
Please jump on google, search for the the_post_thumbnail
function, read the docs an find a related function that allows you to send through a post ID.
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.