Home › Forums › General Issues › images as choices in select field › Reply To: images as choices in select field
Thank you! However, I see no option to set the ‘post object’ field type to return a post ID value… there is no option at all for the return value
Now when I put this in my review template inside the loop:
<?php $mf_post_id = get_field('manufacturer');
if ($mf_post_id) {
$image = get_field('manufacturer_logo', $mf_post_id)
}
?>
the page does not load anymore, meaning there’s an error.
What should I do?
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.