How to Display User’s Total Post Count in Each Post?

Hi Discourse Support Team,

I’m currently running a Discourse forum and I’d like to display the total number of posts a user has made directly in each post they create. Ideally, this should appear next to the username or under the avatar in the post view.

I’ve checked the settings under Admin > Settings > Users and Post Menu Hidden Items, but I couldn’t find an option like user_stats or post_count. I also tried customizing the theme with a poster-name:after widget and JavaScript API, but the post_count attribute doesn’t seem to be available.

Is there a built-in way to enable this, or do I need a plugin or specific API call? Any guidance would be appreciated!

Thanks in advance,
Philipp

1 Like

Here you have 2 plugins available:

3 Likes

Hey Philipp welcome to Meta! :tada:

To save you looking for them in the topic linked above and for other people’s benefit, here they are :wink:

2 Likes

There seems to be some interest in this. Not sure what the path is to making GitHub - markschmucker/discourse-custom-post-display an official plugin.