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".
I would like to use this "Back" image as a hover on our product listing page (category page). I've tried using:
<?php echo $_product->getMediaGalleryImages()->getItemByColumnValue('label', 'Back')->getUrl();?>
To get the URL of the image and use
<img>
to show it. It gives me an error where it only shows one product and it gets messed up.
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)
<?php echo Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages()->getItemByColumnValue('label','Back')->getUrl(); ?>
I'm not well versed in PHP as much as I should be, so maybe the code is wrong?