title: How can I call an ACF Field of a Custom Post type on home page
body: <p>I have an ACF field for my Custom Post "Services" in which it has ACF fields for "is featured service" checkbox and "featured url" fields. If a user check that field, it means its a featured service and he can fill the featured url field and it is working fine on single page, but I do need to call it on homepage to show my featured services on home page. My code on home page is as follows:</p>
  
  <pre><code>&lt;div class="service-box"&gt; 
      &lt;?php if(has_post_thumbnail($service)): ?&gt;
      &lt;a href="&lt;?php the_field('featured_url'); ?&gt;"&gt;&lt;img src="&lt;?php echo get_the_post_thumbnail_url($service); ?&gt;" alt="&lt;?php echo $service-&gt;post_title; ?&gt;"&gt;&lt;/a&gt;
       &lt;?php endif; ?&gt;
       &lt;div class="service-info"&gt;
       &lt;h3&gt;&lt;a href="&lt;?php the_field('featured_url'); ?&gt;"&gt;&lt;?php echo $service-&gt;post_title; ?&gt;&lt;/a&gt;&lt;/h3&gt; 
       &lt;p&gt;&lt;?php echo substr($service-&gt;post_content, 0, 70). (strlen($service-&gt;post_content)&gt;70?'...':'') ?&gt;&lt;/p&gt;
       &lt;a class="btn-rounded" href="&lt;?php the_field('featured_url'); ?&gt;"&gt;&lt;/a&gt;
       &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I get the "featured url" field on my home page?</p>