Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
803 views
in Q2A Core by

Hi,

I've installed Q2A (without the wordpress SSO)

Now, I want the QA module to have my wordpress header (include menues) and footer.

The instructinos here are pretty complicated for a noob like me...there was an answer here in the forum (http://www.question2answer.org/qa/428/how-can-i-integrate-it-with-wordpress#c1623) but it's not coherent nor promising any solution in the end...I tried to follow it but got only php errors (not recognizing get_header etc.)

Is there any very simple step by setp guide to do that? it seems to me like a 5 minutes task but I can't get along with that.

Thanks

1 Answer

0 votes
by
edited by

You need to call:

require '/path/to/wp-load.php';

in your index.php or qa-include/qa-index.php file.

by
Hi,
Tried that already but it keeps redirecting me to http://www.domain.com/wp-admin/install.php, says that Wordpress is already installed...
by
Put it in index.php (before the other require), not the theme class file.
by
Thanks,
I'll try to keep on...
by
Hmmm,
Somehow, the <HEAD> area is now duplicated (one after another) although the header shows once in the final outcome.
by
yes, that's the problem with calling "get_header()", etc.  Check my post here:

http://www.question2answer.org/qa/9773/wordpress-theme-integration#a9830

for a cleaner method.
...