Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
–1 vote
607 views
in Q2A Core by
I’ve integrated Q2A into our Wordpress site and whenever a new user registers through Q2A to ask or answer a question they are sent into WP’s dashboard instead of back to the previous screen to continue with their Q&A session. I only want them to see the Q&A area. Once registered, future logins work properly and take them directly to the Q&A area.

I’ve clearly missed something somewhere, but what?

1 Answer

0 votes
by

did you add the redirection code as per the instructions?

 

/** To allow redirection from WordPress login to Question2Answer **/
add_filter('allowed_redirect_hosts', 'qa_wordpress_redirect_hosts');
function qa_wordpress_redirect_hosts($content) {
	$content[] = 'qa.mysite.com';
	return $content;
}
by
Thanks for the help.

Yes, I followed the WP integration instructions (http://www.question2answer.org/wordpress.php)

I created a /qa/ subdirectory so, according to the instructions, the changes you suggest weren't necessary.

    If Question2Answer is in a subdirectory of your WordPress site (e.g. http://www.mysite.com/qa/ under http://www.mysite.com/) then nothing needs to be done.

However, I went ahead and tried your suggestion just in case and it didn't fix the problem.

Any other ideas?
...