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 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 ?