Home › Forums › Front-end Issues › get the feature img from post objects › Reply To: get the feature img from post objects
hi @Chris
use the full parameters for your get_field, means:
$related_1 = get_field( '1_related_product', false, false );
this make ACF get the values from this post.
and as @Elliot said, use:
echo get_the_post_thumbnail( $related_1, 'thumbnail' );
to echo the image size you want.
let me know anything happened.
A
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.