Get the current category name with Magento

Wish there were some friendly template tags don’t ya?  Yeah you aren’t in WordPress-land anymore.

Need to show the category name anywhere?

Here you go:

$categoryobject = Mage::registry(‘current_category’);

I can’t take the credit for this one though, I actually found the object reference over here.  He got me the object, I just added the line to grab out the name from the object.  Many thanks to Richard for the post.


Leave a comment