I'm trying to display tags associated to every article displayed in my override of Joomla mod_article_latest. I'm trying to show them using this piece of code:
<?php
$tags = new JHelperTags;
$tags->getItemTags('com_content.article', $item);
var_dump($tags);
?>
I got this response from var_dump()
:
object(Joomla\CMS\Helper\TagsHelper)#589 (4) { ["tagsChanged":protected]=> bool(false) ["replaceTags":protected]=> bool(false) ["typeAlias"]=> NULL ["itemTags"]=> array(0) { } }
What's wrong and how can I solve it to display the tags?