I have some product images that should not be displayed in the main product image gallery in magento. I have given a specific label to the images that should not be displayed in the gallery but I am unsure of how to filter the images based on the label.
In my catalog/product/view/media.phtml file I have the following code:
<?php foreach ($this->getGalleryImages() as $_image): ?>
<?php // code to display the images ?>
<?php endforeach; ?>
I would like to filter the array of images returned from the getGalleryImages() call before looping over them in the template. Is there are easy way to get the label of each of the images and then filter based on the value of the label?
Thanks in advance!