/** * Category page * * @param Varien_Object $category */ public function processRouteWordpressPostCategoryView($category) { $this->_applyMeta(array('title' => $this->getTitleTaxCategory(), 'description' => $this->getMetadescTaxCategory(), 'keywords' => $this->getMetakeyTaxCategory(), 'robots' => $this->getNoindexTaxCategory() ? 'noindex,follow' : '')); $this->_applyOpenGraph(array('type' => 'object', 'title' => $category->getName(), 'url' => $category->getUrl(), 'description' => $category->getDescription())); if ($meta = @unserialize(Mage::helper('wordpress')->getWpOption('wpseo_taxonomy_meta'))) { if (isset($meta['category']) && isset($meta['category'][$category->getId()])) { $meta = new Varien_Object((array) $meta['category'][$category->getId()]); $this->_applyMeta(array('title' => $meta->getWpseoTitle(), 'description' => $meta->getWpseoDesc(), 'keywords' => $meta->getWpseoMetakey())); if ($meta->getWpseoCanonical()) { $category->setCanonicalUrl($meta->getWpseoCanonical()); } $this->_applyOpenGraph(array('title' => $meta->getWpseoTitle(), 'description' => $meta->getWpseoDesc(), 'url' => $category->getCanonicalUrl())); } } return $this; }