Shortcode for a single question?

Solved7.62K viewsWordPress
0

I’m trying to insert one particular question via shortcode.

Does something like this exist?

[anspress question=“5820”]

If not, is there a way to insert a specific question into a page?

Thanks!

Question is closed for new answers.
Selected answer as best
1

Yep, try this:

[question id="123"]
Selected answer as best

Awesome! Is there a way to include the answers and to be able to reply right there?
Thanks!

You can use ask form widget along with shortcode.

0

This is not working for me [question=”23″] where 23 is my postid. 🙁
Of course this must be due to some kind of conflict with other content.
Console says:
<div id="anspress" class="ap-eq"></div>
where the short code content should appear. Any thoughts?

Posted new comment

Please ask in a new question.

0

I get this error when using this shortcode:

Fatal error: Call to undefined function ap_display_question_metas() in /home/content/a2pewpnas01_data03/08/3968208/html/wp-content/plugins/anspress-master/templates/shortcode/question.php on line 17