Magento – Want to get meta_title ( Page Title in category ) categorymagento-1.9meta I want to add to get page title in title tag (of head ) i tried <?php if ($_category->getMetaTitle()):?> <?php echo $_helper->categoryAttribute($_category, $_category->getMetaTitle(), 'meta_title') ?> <?php else: ? Best Answer simply add this in your head if(Mage::registry('current_category')) { echo Mage::registry('current_category')->getMetaTitle(); }else { echo $this->getTitle() } Related SolutionsMagento – Get the meta description and page title of any page Try this code: <?php $this->getLayout()->getBlock('head')->getTitle(); $this->getLayout()->getBlock('head')->getDescription(); ?> Magento – Magento 1.9.X – category page title I think, you have a typo here (if you have created page_title attribute) : Replace <?php if ($category->getPageTitle()):?> WITH <?php if ($_category->getPageTitle()):?> If you want to get meta_title (this is shown as Page Title in category edit page at admin) then use : <?php if ($_category->getMetaTitle()):?> <?php echo $_helper->categoryAttribute($_category, $_category->getMetaTitle(), 'meta_title') ?> <?php else: ?> Related TopicMagento 1.9 CMS Pages – Get Specific or Any CMS Page Title
Best Answer
simply add this in your head