title: Display specific product attribute in Woocommerce archive pages
body: <p>I've been looking around SO trying to find an answer to this, but no luck yet. Basically, I want to display some meta data under the title of my products on the archive / shop page(s). My attribute is 'colors', so after trying various pieces of code, I came up with this:</p>
  
  <pre><code>add_action( 'woocommerce_after_shop_loop_item', 'acf_template_loop_product_meta', 20 );
  
  function acf_template_loop_product_meta() {
  
      echo '&lt;h4&gt;Color:' . get_field( '$colors = $product-&gt;get_attribute( 'pa_colors' )' .'&lt;/h4&gt;';
      echo '&lt;h4&gt;Length:' . get_field( 'length' ) . '&lt;/h4&gt;';
      echo '&lt;h4&gt;Petal Count:' . get_field( 'petal_count' ) . '&lt;/h4&gt;';
      echo '&lt;h4&gt;Bud Size:' . get_field( 'bud_size' ) . '&lt;/h4&gt;';
  }
  </code></pre>
  
  <p>The last three lines of code relate to Advanced Custom Fields, and they all work perfectly. It's the one trying to get the color attribute I'm having the issue with. What would be the correct code to display that?</p>