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

I am using extra field option of q2a and I want to add one more of this , and I want to display that content in questions page ,, I don't want to use extra fields plugin because it's not working right and cant display on home page

1 Answer

0 votes
by

You have basically to hack (or to change the behaviour using a plugin/layer of)  include/pages/ask.php.

You have to modify the content that starts here: http://https://github.com/q2a/question2answer/blob/master/qa-include/pages/ask.php#L153

You also have to modify the behaviour of the button "doask" in order to recover the new information that starts here:http://https://github.com/q2a/question2answer/blob/master/qa-include/pages/ask.php#L101

Finaly, you must to find a place to keep this information in the database. I believe that the simplest way is to create a new table. For instance, the extra field plugin creates a table called qa_postmetas.

PS: I think it could be very helpful to let us know what is the problem that you have with the extra field plugin.

 

 

 

...