Hello,
I need to display the category name in a K2 content module that fetches 4 items from a category.
echo $item->catid; will give the correct category id but
echo $item->category->name; doesn't work.
What am i missing here?
Thank you
- John
I need to display the category name in a K2 content module that fetches 4 items from a category.
echo $item->catid; will give the correct category id but
echo $item->category->name; doesn't work.
What am i missing here?
Thank you
- John