01 Feb 2019

Display the parent category name of a K2 sub category


<?php
$parent = JTable::getInstance('K2Category', 'Table');
$parent->load($this->category->parent);
echo $parent->name;
?>