# 이름 옆에 사용자 총 게시글 수 표시하는 방법

**URL:** https://meta.discourse.org/t/how-to-show-user-total-post-count-beside-name/287718
**Category:** Development
**Created:** [12월 6, 2023, 1:15오후 UTC](https://meta.discourse.org/t/how-to-show-user-total-post-count-beside-name/287718 "2023-12-06T13:15:25Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [12월 7, 2023, 2:46오전 UTC](https://meta.discourse.org/t/how-to-show-user-total-post-count-beside-name/287718/8 "2023-12-07T02:46:49Z")

</div>

결국 플러그인을 만들어야 했습니다.

게시물이나 사용자 카드를 볼 때 `post_count` 값을 가져오려면, 이 필드를 포함하도록 데이터를 직렬화해야 합니다. 이는 플러그인의 도움 없이는 불가능하며, 사용자별 요청에 의존하는 것은 현실적인 해결책이 아닙니다.

한 번 사용해 보세요. 관심 있으시면 `assets` 폴더에 JS 부분이 있습니다.  
API를 사용할 때 놓치기 쉬운 한 가지 기능은 [outlets](https://meta.discourse.org/t/using-plugin-outlet-connectors-from-a-theme-or-plugin/32727)을 통해 커스터마이즈할 수 있다는 점입니다.

더 많은 옵션이 필요하면 말씀해 주세요.  
이 플러그인이 작아서 출시해야 할지 모르겠지만, 어쨌든 공개합니다:

> **[GitHub - Arkshine/discourse-user-post-count](https://github.com/Arkshine/discourse-user-post-count)**
>
> Contribute to Arkshine/discourse-user-post-count development by creating an account on GitHub.

---

_[View the full topic](https://meta.discourse.org/t/how-to-show-user-total-post-count-beside-name/287718)._
