Weirdness in Expression Engine.

The text should say something like, “xx posts in xx categories have generated xx comments.” 

Including the post you’re reading, the weblog called blog (I know, right) has 5 posts, 6 categories, and 22 comments (mind you, this is all in experimental phase right now). 

My solution spits out 5 posts, 6 categories, and 5 comments.

Westley’s solution spits out 3 posts, 6 categories, and 1 comment.

Mine:

<code>

{exp:weblog:entries weblog=”{my_weblog}”}{if count == 1}{total_results}{/if}{/exp:weblog:entries} posts in {exp:weblog:categories weblog=”{my_weblog}” style=”linear”}{if count == 1} {total_results}{/if}{/exp:weblog:categories} Categories have generated {exp:weblog:entries weblog=”{my_weblog}”}{if count == 1}{total_comments}{/if}{/exp:weblog:entries} comments.

</code>

Westley’s:

<code>

{exp:stats weblog=”{my_weblog}”} 

{total_entries} posts in 

{exp:weblog:categories weblog=”{my_weblog}” style=”linear”}

{if count == {total_results}}{total_results}{/if}

{/exp:weblog:categories}

Categories have generated {total_comments} comments

{/exp:stats}

</code>

Thoughts? Suggestions?