I just noticed that once you submit a question “here on this site” it takes you to a new page. And not back to the question list page. Now that’s nice and for sure would be a great addition to my site. Looking forward to this feature..
Just a option to redirect to a page after posting a question only would work. But not a comment of course.
To redirect users to a different page when they submit a question, kindly open /wp-content/plugins/dw-question-answer/inc/actions.php
and find the following line of code around line 511:
exit( wp_safe_redirect( get_permalink( $new_question ) ) );
and replace with the following for redirection to home page:
exit( wp_safe_redirect( home_url() ) );
But you can use this line to redirect user to any other page as you wish!
Hope this helps some one out there as well.
All the improvements of DW Question & Answer system have been updated to Github repo. You can pull from here: https://github.com/designwall/dw-question-answer
Please NOTE that It’s not yet stable version of DW Question & Answer plugin. I don’t recommend you to use this version on your LIVE website. When all the issues and features have been tested & approved, we will publish on the WordPress.org.
Please login or Register to submit your answer