title: How to pull ACF values into a custom post type archive
body: <p>So my issue is that I just created a custom post type and have created a couple of posts to go along with this. I am using ACF fields in the template single-post_type.php That I created. These show up fine on the individual posts, but I need some of the ACF field values that are on the individual post page to show up on the custom post index. I've tried searching for answers but just can't seem to find what I'm looking for.</p>
  
  <p>For reference, Here is the code I have registering the custom post type:</p>
  
  <pre><code>// Add new post type for Available Homes
  add_action('init', 'available_homes');
  function available_homes() 
  {
  $available_homes_labels = array(
      'name' =&gt; _x('Available Homes', 'post type general name'),
      'singular_name' =&gt; _x('Available Home', 'post type singular name'),
      'all_items' =&gt; __('All Available Homes'),
      'add_new' =&gt; _x('Add New Listing', 'recipes'),
      'add_new_item' =&gt; __('Add New Listing'),
      'edit_item' =&gt; __('Edit Listing'),
      'new_item' =&gt; __('New Listing'),
      'view_item' =&gt; __('View Listing'),
      'search_items' =&gt; __('Search in Available Homes'),
      'not_found' =&gt;  __('No listings found'),
      'not_found_in_trash' =&gt; __('No listings found in trash'), 
      'parent_item_colon' =&gt; ''
  );
  $args = array(
      'labels' =&gt; $available_homes_labels,
      'public' =&gt; true,
      'publicly_queryable' =&gt; true,
      'show_ui' =&gt; true, 
      'query_var' =&gt; true,
      'rewrite' =&gt; true,
      'capability_type' =&gt; 'post',
      'hierarchical' =&gt; false,
      'menu_position' =&gt; 20,
      'supports' =&gt; array('title','editor','custom-fields'),
      'has_archive'  =&gt;  'available_homes'
  ); 
  register_post_type('available_homes',$args);
  }
  </code></pre>
  
  <p>And I have some basic ACF fields on single-available_homes.php</p>
  
  <p>Then I have a page called archive-available_homes.php which has this code:</p>
  
  <pre><code>&lt;?php get_header(); ?&gt;
  &lt;h1 class="page-title"&gt;Available Homes&lt;/h1&gt;
      &lt;div id="primary"&gt;
          &lt;div id="content" role="main"&gt;
  
          &lt;?php if ( have_posts() ) : ?&gt;
  
              &lt;?php /* Start the Loop */ ?&gt;
  
              &lt;?php while ( have_posts('') ) : the_post(); ?&gt;
  
                  &lt;?php get_template_part( 'content', get_post_type() );     ?&gt;
  
              &lt;?php endwhile; ?&gt;
  
          &lt;?php else : ?&gt;
              &lt;article id="post-0" class="post no-results not-found"&gt;
                  &lt;header class="entry-header"&gt;
                      &lt;h1 class="entry-title"&gt;&lt;?php _e( 'Nothing   Found', 'twentyeleven' ); ?&gt;&lt;/h1&gt;
                  &lt;/header&gt;&lt;!-- .entry-header --&gt;
                  &lt;div class="entry-content"&gt;
                      &lt;p&gt;&lt;?php _e( 'Apologies, but no results were   found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?&gt;&lt;/p&gt;
                      &lt;?php get_search_form(); ?&gt;
                  &lt;/div&gt;&lt;!-- .entry-content --&gt;
              &lt;/article&gt;&lt;!-- #post-0 --&gt;
          &lt;?php endif; ?&gt;
  
          &lt;/div&gt;&lt;!-- #content --&gt;
      &lt;/div&gt;&lt;!-- #primary --&gt;
  &lt;div class="widget_area"&gt;
  &lt;?php dynamic_sidebar("gravity_form_widget_area"); ?&gt;
  &lt;/div&gt;
  &lt;?php get_footer(); ?&gt;
  </code></pre>
  
  <p>ACF Fields and everything else is working fine on the individual posts but I just don't know what to do to get the ACF field data to show on the archive page. Help?</p>