i need to display value of certain applied filter in layered navigation.
<?php $appliedFilters = Mage::getSingleton('catalog/layer')->getState()->getFilters();
foreach ($appliedFilters as $item) {
$item->getName();
$item->getLabel();
$item->getFilter()->getRequestVar() == 'my_attribute'; // My attribute code
echo $item->getLabel();
}
?>
This code returns all the values of all the selected attributes.
I need to display only value from 'my_attribute'.