# discourse\_topics 쇼트코드 출력을 범주로 필터링하는 방법?

**URL:** <https://meta.discourse.org/t/how-to-filter-discourse-topics-shortcode-output-by-category/195181>\
**Category:** WordPress\
**Created:** [6월 28, 2021, 12:12오전 UTC](https://meta.discourse.org/t/how-to-filter-discourse-topics-shortcode-output-by-category/195181 "2021-06-28T00:12:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Himanshu\_Singh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/himanshu_singh/32/216438_2.png) [@Himanshu\_Singh](https://meta.discourse.org/u/Himanshu_Singh)\
**Post date:** [6월 28, 2021, 12:12오전 UTC](https://meta.discourse.org/t/how-to-filter-discourse-topics-shortcode-output-by-category/195181/1 "2021-06-28T00:12:30Z")

</div>

저는 WordPress에서 주제를 표시하기 위해 Discourse 쇼트코드 플러그인을 사용하고 있습니다.

[쇼트코드 속성](https://github.com/communiteq/wp-discourse-shortcodes)에는 카테고리를 기반으로 출력을 필터링하는 옵션이 없습니다. 사이트 피드백이나 자기소개와 같은 카테고리는 Discourse 인스턴스에서 모든 사용자에게 표시되지만, 이러한 카테고리에서 작성된 게시글이 WordPress의 피드에는 표시되지 않기를 원합니다.

이를 가능하게 하는 방법이 있을까요?

---

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [7월 16, 2021, 2:52오전 UTC](https://meta.discourse.org/t/how-to-filter-discourse-topics-shortcode-output-by-category/195181/2 "2021-07-16T02:52:36Z")

</div>

Himanshu\_Singh님,

wp-discourse-shortcode 플러그인은 현재 Communiteq(@RGJ)에서 관리하고 있습니다.

게시물을 특정 카테고리로 제한할 수 있는 기능을 추가하는 PR을 작성했습니다. 이것이 정확히 원하시는 내용은 아닐 수 있지만, 불행히도 Discourse는 단일 토픽 목록을 여러(하지만 전체가 아닌) 카테고리로 필터링하는 것을 지원하지 않습니다(즉, Discourse 자체에서도 그렇게 할 수 없습니다).

> <https://github.com/communiteq/wp-discourse-shortcodes/pull/7>
>
> As requested here https://meta.discourse.org/t/how-to-filter-discourse-topics-sh…ortcode-output-by-category/195181

---

<div class="post-metadata">

**Author:** ![Himanshu\_Singh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/himanshu_singh/32/216438_2.png) [@Himanshu\_Singh](https://meta.discourse.org/u/Himanshu_Singh)\
**Post date:** [7월 16, 2021, 4:32오전 UTC](https://meta.discourse.org/t/how-to-filter-discourse-topics-shortcode-output-by-category/195181/3 "2021-07-16T04:32:28Z")

</div>

앙거스, 감사합니다. 확실히 좋은 시작인 것 같고, 왜 Discourse가 여러 카테고리 필터링을 지원하지 않는지 궁금하네요. 커뮤니티가 다양한 사용자 요구를 충족하기 위해 점점 더 복잡해지면, 사용자 유형별로 더 맞춤화된 경험이 필요해집니다.

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [7월 16, 2021, 6:40오전 UTC](https://meta.discourse.org/t/how-to-filter-discourse-topics-shortcode-output-by-category/195181/4 "2021-07-16T06:40:39Z")

</div>

당신의 pull request를 병합했습니다. 감사합니다, @angus !
