I’m using {count} inside {exp:channel:entries} within a single channel entry loop. The problem is {count} does not seem to work when {exp:channel:categories} is used inside of a single channel entry loop. Outside of a single entry or even in a non-single channel entries loop, it works just fine. Here’s an example:
{exp:channel:entries channel="my_channel" entry_id="1" limit="1"}
{exp:channel:categories group_id="1"}
{count}: {category_name}
{/exp:channel:categories}
{!-- this doesn't work either --}
<ul>
{categories}
<li>{count}: {category_name}</li>
{/categories}
</ul>
{/exp:channel:entries}The above would output something like the following on both accounts:
1: category 1
1: category 2
1: category 3
And so on…
Is this a known limitation such as {exp:channel:next_entry} not working correctly inside of a channel entries loop? I don’t see any mention of it in the docs. Or, is this a bug that should be reported?