title: Woocommerce add multiple images to category page
body: <p>I want to add 2 images to Woocommerce categories, at this time I can only add 1 image at a time.
  but I would like to add 2 images to a category. so that it scrolls. help needed. This is what I have at this stage</p>
  <pre><code> /**
   * Display category image on category archive
   */
  add_action( 'woocommerce_archive_description', 'woocommerce_category_image', 2 );
  function woocommerce_category_image() {
      if ( is_product_category() ){
          global $wp_query;
          $cat = $wp_query-&gt;get_queried_object();
          $thumbnail_id = get_term_meta( $cat-&gt;term_id, 'thumbnail_id', true );
          $image = wp_get_attachment_url( $thumbnail_id );
          if ( $image ) {
              echo '&lt;img src=&quot;' . $image . '&quot; alt=&quot;' . $cat-&gt;name . '&quot; /&gt;';
          }
      }
  }
  </code></pre>
  <p>at this stage it looks like this
  <a href="https://i.stack.imgur.com/Ve5ko.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ve5ko.jpg" alt="enter image description here" /></a></p>
  <p>and in the front, it looks like this</p>
  <p><a href="https://i.stack.imgur.com/Y7h4s.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y7h4s.jpg" alt="enter image description here" /></a></p>
  <p>I would like to add more than just one image per category</p>
  <p><strong>EDIT</strong>
  I have installed advanced custom fields and could add extra image fields in the backend with no problem, the problem I have now is to display that fields on the front-end.</p>
  <p>my Woocommerce store shows Categories on the shop page
  <a href="https://i.stack.imgur.com/VUZ0B.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VUZ0B.jpg" alt="enter image description here" /></a></p>
  <p>need to add the extra images to the categories on the shop page NEED HELP PLEASE</p>
  <p><strong>UPDATE WITH CODE THAT SEMI-WORKS</strong></p>
  <blockquote>
  <p>add_action('woocommerce_before_subcategory_title',
  'wpse_add_custom_text_under_category_title', 10);</p>
  <p>function wpse_add_custom_text_under_category_title($category) {<br />
  $term_id = 'product_cat_'.$category-&gt;term_id; for ( $i = 1; $i &lt;= 3;
  $i++ ){      $category_image =  the_field('category_image_' . $i,
  $term_id);    if ( ! empty( $image ) ){
  echo '';
  // echo $category_image.&quot;<br/>&quot;;
  } } }</p>
  </blockquote>
  <p>The output brings up the image URL but even if I put it into the image tags it only displays the URL</p>