I'm trying to "sort" through content on the homepage to display particular items based on the "Tags" that are included in them, but I can't figure out how to reference those tags from the home page.
I can reference tags on the item pages with no problem and am using that to display different images, but it doesn't seem to work on the index.php home page.
Here's what I've tried:
Any ideas??
I can reference tags on the item pages with no problem and am using that to display different images, but it doesn't seem to work on the index.php home page.
Here's what I've tried:
<?php
echo count($items); //this returns 13, which is the correct number of items
echo count($item->tags); //this returns 0
echo $params->get('itemTitle'); //this returns 1
echo $params->get('itemTags'); //this returns 0
?>Any ideas??