I am using my forum as Q/A Forum so is it possible to add this type of schema json for google listing like answer
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "QAPage",
"mainEntity" : {
"@type" : "Question",
"name" : "Discussion Title here",
"answerCount" : "Totalusers number only",
"acceptedAnswer" : {
"@type" : "Answer",
"text" : "Users post here"
}
}
}
</script>
I can add this in head tag but how can I get discussion title and user's post count and the same question for the no. of users posts and answer count and If user select best answer then it should add accepted answer is it possible??
It will be also great if I can make support only for best answer