# Sort by Solved/Unsolved Questions in Category

**URL:** <https://meta.discourse.org/t/sort-by-solved-unsolved-questions-in-category/65153>\
**Category:** Feature\
**Tags:** solved\
**Created:** [2017年六月27日 00:27 UTC](https://meta.discourse.org/t/sort-by-solved-unsolved-questions-in-category/65153 "2017-06-27T00:27:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2017年六月27日 09:48 UTC](https://meta.discourse.org/t/sort-by-solved-unsolved-questions-in-category/65153/3 "2017-06-27T09:48:32Z")

</div>

> [@Trash](#):
>
> ```plaintext
> if(!category) {
> 
> ```

This will show the solved/unsolved buttons on the main pages, not the category pages.

If you want to add to category pages there’s an example [here](https://meta.discourse.org/t/adding-unsolved-button-to-top-menu-using-custom-html/59758/2) 🙂

---

_[View the full topic](https://meta.discourse.org/t/sort-by-solved-unsolved-questions-in-category/65153)._
