Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

how can I set "most answers" questions as home page ?

+1 vote
asked Dec 16, 2017 in Q2A Core by Zeeshan
Q2A version: 1.8

1 Answer

+2 votes
answered Dec 16, 2017 by Scott
selected Dec 17, 2017 by Zeeshan
Best answer

It's not really possible with usual methods as $QA_CONST_PATH_MAP only allows basic slugs, not ?sort=answers

However it's possible with a slightly hacky workaround. First set $QA_CONST_PATH_MAP as such:

    'questions' => '',

Then underneath that in qa-config.php put this:

if (!isset($_GET['qa-rewrite']) && !isset($_GET['sort'])) {
    $_GET['sort'] = 'answers';

commented Dec 16, 2017 by Zeeshan
Works...thank you .
commented Dec 17, 2017 by Yogendra Basnet
If it worked for you please consider selecting it as the best answer. It will help the community.
commented Dec 17, 2017 by Zeeshan
commented Dec 18, 2017 by Zeeshan
hey scott...I also want to do it with category means when somebody click on category it must show most answered questions on top.....can you tell please ?
commented Mar 11 by Zeeshan
I have again set "Most answered questions" as home page but when I am clicking on "recent" tab it is redirecting to "Most answered questions"...I am not able to see recent questions tab?