I am building out a sitemap for a site, and I have a need to filter a usage of {exp:stats} based on a channel. My expected code would look like this:
{exp:stats channel="news"}
{last_entry_date format="{DATE_W3C}"}
{/exp:stats}When I run this code though, it only outputs — instead of the expected date value. When I remove the channel=“news” bit this outputs the date value of the most recent entry across all channels.
Some notes about my usage: MSM is installed and running multiple sites. I do NOT intend to get results from other sites, only the site this template lives in. The {exp:stats} tag is NOT inside of any other tags.
Am I using this wrong? Is what I am trying to do possible?