# Option to move accepted answer to the top

**URL:** <https://meta.discourse.org/t/option-to-move-accepted-answer-to-the-top/58386>\
**Category:** Feature\
**Tags:** solved\
**Created:** [November 24, 2015, 9:32pm UTC](https://meta.discourse.org/t/option-to-move-accepted-answer-to-the-top/58386 "2015-11-24T21:32:08Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [March 6, 2017, 8:44pm UTC](https://meta.discourse.org/t/option-to-move-accepted-answer-to-the-top/58386/8 "2017-03-06T20:44:35Z")

</div>

I really like this idea. I’ve had a go at implementing it, adding options for “hide\_posts\_before\_solution” and “hide\_posts\_after\_solution”.

Currently, a thread might look something like this:

> **Screenshot**
>
> ![](https://global.discourse-cdn.com/meta/original/3X/c/3/c39c7d99fad0ec90f82d862b60997adba4cd0c4a.png)

Enabling “hide\_posts\_before\_solution” would make it look like this:

> **Screenshot**
>
> ![](https://global.discourse-cdn.com/meta/original/3X/1/2/12fc70fd57641c31ac7d0acb99f2ed3539b5eda0.png)

Also enabling “hide\_posts\_after\_solution” would make it look like this:

> **Screenshot**
>
> ![](https://global.discourse-cdn.com/meta/original/3X/3/6/36c948b52e4aa03595bb6876dc327fd2a0caea22.png)

I think this makes it much easier for people who come across the topic later to find the useful information quickly, while also keeping it nice and simple for people who want to read the whole thread.

This functionality requires some changes to Discourse’s core to add “custom filters” to TopicView. I’ve based this on the recent additions of custom filters to TopicQuery, so I hope I have gone about it in the right way. The pull request to core is here:  
[https://github.com/discourse/discourse/pull/4740](https://github.com/discourse/discourse/pull/4740)

and the pull request to discourse-solved can be found here:  
[https://github.com/discourse/discourse-solved/pull/48](https://github.com/discourse/discourse-solved/pull/48)

---

_[View the full topic](https://meta.discourse.org/t/option-to-move-accepted-answer-to-the-top/58386)._
