title: Woocommerce Merge featured image and Attachements images in one loop
body: <p>in single product page:
  How to Merge featured image and Attachments images in one loop.</p>
  
  <p>Featured Image "Product Image":</p>
  
  <pre><code>&lt;?php $img_url = $image = wp_get_attachment_image_src( get_post_thumbnail_id( $loop-&gt;post-&gt;ID ), 'single-post-thumbnail' );?&gt;
  
      &lt;img src="&lt;?php  echo $image[0]; ?&gt;" data-id="&lt;?php echo $loop-&gt;post-&gt;ID; ?&gt;"&gt;
  </code></pre>
  
  <p>Attachements images "Product Gallery" :
  global $product;
   $attachment_ids = $product->get_gallery_attachment_ids();</p>
  
  <pre><code>foreach( $attachment_ids as $attachment_id ) 
  {
    echo '&lt;img src="'.$image_link = wp_get_attachment_url( $attachment_id ).'"&gt;';
  }
  </code></pre>
  
  <p>Now:
  How to create one loop which can get all single product images ?</p>
  
  <p>to be like :</p>
  
  <pre><code>foreach( $images as $image_src_url ) 
  {
    echo '&lt;img src="'.$image_src_url.'"&gt;';
  }
  </code></pre>