Henrik Gregersen
asked 9 years ago


DW Q&A has a separate page for creating questions.
Is ajax supported, so you could have the form and the questions listed on the same page without reloading the page?

1 Answers
answered 9 years ago

I know what you want. unfortunately, our plugin does not support this issue.
However, you can redirect users to a different page when user submit a question, please open the actions.php file in the folder path wp-content\plugin\dw-question-answer\inct\actions.php file.
Find the line code around line 425:

exit( wp_safe_redirect( get_permalink( $new_question ) ) );

Then replace with the following code to redirect to home page:

exit( wp_safe_redirect( home_url() ) );

Notice: you can use similar to redirect user to any other page as you wish (in your case to the question listing page)

Eg: like this is my url : http://mysite/discussion-forum/
exit( wp_safe_redirect( home_url() .'discussion-forum/' ) );

Note: You can remove the code line.
Hope this helps !
Best Regards,

henrik gregersen
replied 9 years ago

Ok thanks for your answer.

Powered by DW Question & Answer Pro