I want to show the tags, that are assigned to a K2 item, in an RSS feed.

I have added:

$feedItem->tags = $tag;

to /components/com_k2/views/itemlist/viewfeed.php

and then added:

$feed .= "          <tags>" . htmlspecialchars($data->items[$i]->tags, ENT_COMPAT, 'UTF-8') . "</tags>\n";

to /libraries/joomla/document/feed/renderer/rss.php

I get the placeholder in the RSS feed view of but the tags aren't being show.

Any ideas where I'm going wrong?


Having now spoken with the K2 developers, it appears that this cannot be done using RSS. It can however be done using JSON. To do it edit this file:

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.