title: How to get featured image of an ACF relation field
body: <p>I run a Wordpress job board website, where I have a &quot;Company&quot; custom post with several ACF fields and a featured image, and a &quot;Job&quot; custom post always linked to a specific company.
  When I submit a new &quot;Job&quot;, I use an ACF relation field (linked to &quot;Company&quot; custom post) in order to get the company name and the company logo (logo = ACF image field).
  Now, I would need also to retrieve the Company featured image in the job post, how can I do that?</p>
  <p>Below is how I get the company logo image in a &quot;Job&quot; post:</p>
  <pre><code>&lt;div class=&quot;single-logo-container&quot;&gt;
       &lt;?php
       $posts = get_field('job_company');
       if( $posts ): ?&gt;
       &lt;?php foreach( $posts as $post): ?&gt;
       &lt;?php setup_postdata($post); ?&gt;
       &lt;?php
       $logo_image = get_field('logo_image');
       $size = 'thumbnail';
       if( $logo_image ) {
       echo wp_get_attachment_image( $logo_image, $size );
       } ?&gt;
       &lt;?php endforeach; ?&gt;
       &lt;?php wp_reset_postdata(); ?&gt;
       &lt;?php endif; ?&gt;
     &lt;/div&gt;
  </code></pre>
  <p>Thanks for your help!
  Marc</p>