Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Is exist an array indice for question url?

0 votes
91 views
asked Dec 17, 2012 in Q2A Core by eftalgezer
Question's postid, title vb. may get as $params['postid'].
Is exist an array indice for question url such as $params['url'] or $params['link']?

1 Answer

+1 vote
answered Dec 17, 2012 by Scott

No, question URLs are not stored anywhere in the database, they are always generated from the ID and title. You simply pass them into the qa_q_path function:

$url = qa_q_path($questionid, $title);

Or in your case above:

$url = qa_q_path($params['postid'], $params['title']);

See http://question2answer.org/functions.php

...