How can I get a total word count of one author’s posts? I would like to be able to see what the total word count of their output is, summed across all of their posts (ideally with a breakdown by category/tag/page-or-post).
Leave a Reply
You must be logged in to post a comment.
I use a plug-in called Post Word Count to sum the total number of published words across my entire site … then again, I’m the only author, so this is a pretty simple example. But you could start with this plug-in and add a filter that changes the query based on the author’s ID. Basically:
This function will return a total count of all published words by that author (based on the author ID). If you don’t specify an author ID, it will return a count of all published words. This won’t count post revisions, drafts, or schedule posts, just those currently visible to users.
Disclaimer, I haven’t tested this yet, but it’s based on the original Post Word Count plug-in and should work just fine.
In the interest of self-promotion, I have a plugin, WP Word Count, for word counts that might offer what you need and a bit more