luke kes
asked 11 years ago

Once after I sumit a question, the immediate page I see is ‘Add an Answer’ page. Since I am the one asked the question, is there a way to show a different screen instead something like, ‘Your question has been successfully sumitted’ and can we provide a link to return to ‘All Questions’ page? Please advise how we can achive this?

1 Answers
DominicStaff
answered 11 years ago

Hi Luke, 
As default, our Q&A plugin will navigate to question page after submitting a question. If you want to return to “All questions” page after submitting the question successfully, you can do as following:
– Open the actions.php file in the folder path “plugins/dw-question-answer/inc/actions.php” go to line 468 then replace the following code:

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

With new code:

exit( wp_safe_redirect( get_post_type_archive_link( 'dwqa-question' ) ) );

See the screenshot:
Hope this helps!

Powered by DW Question & Answer Pro