# 如何在登录时在类别过滤器中显示帖子

**URL:** <https://meta.discourse.org/t/how-to-show-a-post-in-category-filter-when-logged-in/265039>\
**Category:** Support\
**Created:** [2023年五月15日 10:35 UTC](https://meta.discourse.org/t/how-to-show-a-post-in-category-filter-when-logged-in/265039 "2023-05-15T10:35:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Đạt\_Hoàng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/%C4%91%E1%BA%A1t_ho%C3%A0ng/32/306684_2.png) [@Đạt\_Hoàng](https://meta.discourse.org/u/%C4%90%E1%BA%A1t_Ho%C3%A0ng)\
**Post date:** [2023年五月15日 10:35 UTC](https://meta.discourse.org/t/how-to-show-a-post-in-category-filter-when-logged-in/265039/1 "2023-05-15T10:35:07Z")

</div>

当我未登录时，按钮会显示成这样

 ![Screenshot from 2023-05-15 17-14-12](https://global.discourse-cdn.com/meta/original/4X/5/b/6/5b62d683585784f5cf2d4aec67f164d95ad47278.png)  
但是当我登录时，它会显示成这样  
 ![Screenshot from 2023-05-15 17-33-09](https://global.discourse-cdn.com/meta/original/4X/5/7/4/574e890acc640335f33f7a4d284c2c080091b08d.png)  
如何才能一直显示成第一张图的样子？  
谢谢阅读。

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2023年五月15日 10:53 UTC](https://meta.discourse.org/t/how-to-show-a-post-in-category-filter-when-logged-in/265039/2 "2023-05-15T10:53:28Z")

</div>

> [@How can I add the category descriptions to show in the category dropdowns?](https://meta.discourse.org/t/how-can-i-add-the-category-descriptions-to-show-in-the-category-dropdowns/209152/6?u=moin):
>
> As Daniela mentioned, we only show the category description in the dropdown for new users (trust level 0) and it’s hidden for everyone else. The thought is that regular visitors will benefit from seeing more categories at once and the descriptions are less useful. You can override this behavior by adding this to the head section of your site’s theme (admin \> customize \> themes \> edit html/css): \<script type="text/discourse-plugin" version="0.8"\> api.modifyClass("component:category-drop", { …

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2023年六月14日 10:54 UTC](https://meta.discourse.org/t/how-to-show-a-post-in-category-filter-when-logged-in/265039/3 "2023-06-14T10:54:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
