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

I want to display questions on another php page

I want to get the question list from smarter QA (Q2A) base page to simple PHP page.

Q2A version: 1.8.2

1 Answer

+1 vote
by

If you want display questions in the same QA website but at different page you can use following codes.

$userid = qa_get_logged_in_userid();

$start = qa_get_start();

$questions = qa_db_select_with_pending(qa_db_qs_selectspec($userid, 'created', $start, null, null, false, false, qa_opt_if_loaded('page_size_qs'));

Here $questions will be array of questions sorted by date of creation. 

by
+2
And also look here for using Q2A from external code: http://docs.question2answer.org/code/external/
...