{count} is not counting, instead it renders “1” for every entry. below is the code i’m using in the page template, with a bit of context in case it has something to do with the query module… any help would be highly appreciated!
{exp:weblog:categories style="linear" weblog="{segment_1}"}
{if segment_2==category_url_title}
{exp:query sql="SELECT count(exp_category_posts.entry_id) AS post_count FROM exp_category_posts WHERE exp_category_posts.cat_id = {category_id} "}
{exp:weblog:entries weblog="{segment_1}" category="{category_id}" status="not footer" search:publications_partof="not y"}
{count}
{/exp:weblog:entries}
{/exp:query}
{/if}
{/exp:weblog:categories}Moved to HowTo by Moderator