title: Get Product Image from Media Gallery by Image Label on Magento
body: <p>I'm a bit stuck with this one. I've uploaded images on our Magento and they do not belong in "image, small_image, thumbnail" labels. They have their own labels in the Media Gallery, which is "Back".</p>
  
  <p>I would like to use this "Back" image as a hover on our product listing page (category page). I've tried using:</p>
  
  <pre><code>&lt;?php echo $_product-&gt;getMediaGalleryImages()-&gt;getItemByColumnValue('label', 'Back')-&gt;getUrl();?&gt;
  </code></pre>
  
  <p>To get the URL of the image and use </p>
  
  <pre><code>&lt;img&gt; 
  </code></pre>
  
  <p>to show it. It gives me an error where it only shows one product and it gets messed up.</p>
  
  <p>I've tried this as well, and gives me a different error, where it does show the back of the image when I hover, BUT it only shows one product and that's it (there is usually 1500+ in the category itself)</p>
  
  <pre><code>&lt;?php echo Mage::getModel('catalog/product')-&gt;load($_product-&gt;getId())-&gt;getMediaGalleryImages()-&gt;getItemByColumnValue('label','Back')-&gt;getUrl(); ?&gt;
  </code></pre>
  
  <p>I'm not well versed in PHP as much as I should be, so maybe the code is wrong? </p>