According to this documentation page, <$mt:BlogEntryCount$> is supposed to support all of the filtering attributes of <mt:Entries>, but when I write something like this:
<$mt:BlogEntryCount category="Audio"$>
the tag always outputs the total number of entries on my blog, instead of the total number of entires in that category.
Using the "categories" attribute does the same thing, as well as using the category ID number in the attribute value.
Reported on Movable Type 5
Sorry, that link should be: http://www.movabletype.org/documentation/appendices/tags/blogentrycount.html
On which template are you using that coding?
Also, it is declared within what loop? mt:Entries?
If you want to display an entries count inside a mt:Categories loop you could use: <$mt:CategoryCount$>
Otherwise, you may like to try to use mt:EntryCount, instead of mt:BlogEntryCount.
From the docs:
"Returns the number of published entries associated with the blog currently in context."
Mike, I've successfully used mt:EntriesCount or mt:CategoryCount within category loops.
I didn't question you on that. I was pointing out something from the BlogEntryCount documentation which specifies that it is **blog-only**.
That's right!
That's the reason why I wrote above the following:
"Otherwise, you may like to try to use mt:EntryCount, instead of mt:BlogEntryCount."
I'm trying to use the tag on an index template, outside of any loops. The tag is working in that context (it's printing the total number of blog entries for this blog) but it's not honoring my filtering preference to trim the count.
Looks like you may have found a bug.
Filed: http://bugs.movabletype.org/default.asp?103748
After you create a bug report, you could use as a work around the advice I've provided you above.