I’m using the post-word-count plugin with the following modification to exclude pages from the wordcount:
if ($single) $query = "SELECT post_content FROM $wpdb->posts WHERE ID = '$id' AND post_type='post'";
else $query = "SELECT post_content FROM $wpdb->posts WHERE post_status = 'publish' AND post_date < '$now' AND post_type='post'";
However, I would also like to exclude some categories from the wordcount. How can I do that?
]]>