I want to add the articles category name, when the results show up for "Smart search" plugin. right now it only shows the article name. i tried to use this code, but it didn't work:
<?php $title = $this->escape($item->category_title); ?>
<?php if ($params->get('link_category') && $item->catslug) : ?>
<?php $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($item->catslug)) . '" itemprop="genre">' . $title . '</a>'; ?>
Can anyone tell me if there are any other way to do it? :)