Home › Forums › General Issues › Displaying ACF Relationship Field in Template › Reply To: Displaying ACF Relationship Field in Template
To show the featured image, I believe you can use the the_post_thumbnail() function. It should be something like this:
<li> <?php the_post_thumbnail(); ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <span>Custom field from $post: <?php the_field('author'); ?></span> </li>
Could you please share the full code here: https://gist.github.com/? Also, could you please share some screenshots of the result and let me know how you want it to be? If you can share the live URL, that would be great too!
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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.