I've been working on my first plugin. I can't seem to output content unless I output it as part of a form like this:
$qa_content=qa_content_prepare(); $qa_content['form']=array( //DO STUFF... )
$qa_content=qa_content_prepare();
$qa_content['form']=array(
//DO STUFF...
)
If I change $qa_content['form'] to $qa_content['div'], nothing appears on the plugin page except for the rest of page styling. I can't seem to find and documentation on qa_content_prepare() or what it does. I can't even figure out where the function is defined. What does it do? How do I use it to output content other than forms?
Like its mentioned in the comment on the function (found in qa-include/qa-page.php) it generates all the markups and content for each page that is displayed in Q2A - "Start preparing theme content in global $qa_content variable, with or without $voting support, in the context of the categories in $categoryids (if not null)"
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.