How to get category name and category Id of current blog category page in fishpig wordpress magento integration?
Asked
Active
Viewed 1,798 times
0
-
1What have you tried? Have you read the documentation? http://fishpig.co.uk/wordpress-integration/docs.html – Zachary Schuessler Aug 02 '12 at 18:23
1 Answers
2
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; ?>

Ben Tideswell
- 1,697
- 2
- 11
- 14