Wednesday, September 27, 2023
HomeCommunityBuilding a Questions and Answers Community Part 3: Integration of Question2Answer with...

Building a Questions and Answers Community Part 3: Integration of Question2Answer with WordPress

Integrating the Question2Answer with WordPress made easy, we don’t need to add WordPress database information into Q2A script. However it can be done by installing the Question2Answer and WordPress first. If you have just installed both into your cPanel. Let’s START integrating Q2A script with WordPress.

Installing Question2Answer Part 3

This entry is part 3
It’s a part from the series about how to build a Questions and Answers Community using Question2Answer.
Part 1
Part 2

Integration of Question2Answer with WordPress

Follow the steps below to get started with Q2A in WordPress:

1. Edit up qa-config.php and insert the following line of code next to another define(…) in the file:


define('QA_MYSQL_HOSTNAME', 'localhost'); // try '' or 'localhost' if MySQL on same server
define('QA_MYSQL_USERNAME', 'username');
define('QA_MYSQL_PASSWORD', 'password');
define('QA_MYSQL_DATABASE', 'database name');


2. Replace the path /PATH/TO/WORDPRESS with the directory where your WordPress core installation. In short, the full path of your WordPress directory, for example we need the directory which contains wp-load.php file that’s it.

Note: We don’t need to set MySQL database details in qa-config.php for WordPress because these will be imported from WordPress automatically. Q2A and WordPress will use separate tables within the same MySQL database.

Once the path of your WordPress core installations set a welcome page will appear, where you have to click the button create Database:

welcome note question2answer
welcome note question2answer

After clicking the button you will see a congratulations message with a link to your administrator dashboard.

Your Question2Answer database has been created and integrated with your WordPress site.

question2answer qa installed in WordPress
question2answer qa installed in WordPress

Feel free to contact us, if you have any query regarding Question2Answer software.

Muhammad Haroon
Truly yours, Muhammad Haroon is my name. Living in Karachi, Pakistan and enjoying my life playing with codes and blogging frequently, my most popular guides on Best WordPress Plugins. I founded Softstribe in 2012, when I was about to leave College. Find me on


  1. Yep, did it. Thank you … but my page is still the old layout and in the wp-admin i have no settings. So where is there the integration?

    • Maybe you encounter the database connection issue. Try adding the correct database and do it once again if this didn’t work. Contact your web host about this issue because there have been many 500 internet server error problems. Can’t help you in this matter.


Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular