Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

Wordpress Login Problem

–1 vote
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?
asked Dec 2, 2011 in Q2A Core by JGreene

1 Answer

0 votes

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;
}
answered Dec 2, 2011 by NoahY
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?