Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
604 views
in Q2A Core by
Hi , I am tried modifying the php as suggested above

I am using latest version of Q2A

$postid =qa_question_create(null, $questionuserid, null, null, $questiontext, $questioncontent, '', null,$questiontags, false, null,$questioncats);

 

also in

function qa_question_create($followanswer, $userid, $handle, $cookieid, $title, $content, $format, $text, $tagstring, $notify, $email, $categoryid)

 

earlier $categoryid=null  was there...

but still it is not working. I don;t want to get category id from any table. I am sure whatever data i am putting is correct..

1 Answer

0 votes
by

I'm afraid you do need to pass the categoryid from the qa_categories table for that parameter, or null for no category.

...