Reputation: 1702
How to get category name and category Id of current blog category page in fishpig wordpress magento integration?
Upvotes: 0
Views: 1799
Reputation: 1697
You can retrieve the current loaded category as follows:
<?php $category = Mage::registry('wordpress_category') ?>
<?php if ($category): ?>
<?php echo $category->getId() ?>: <?php echo $category->getName() ?>
<?php endif; ?>
Upvotes: 2