Support schema.org QAPage and Google rich results

Thanks for the PR. Now it is merged. Sorry for the delay!

8 Likes

Looking good!

No errors in Google console: https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fmeta.discourse.org%2Ft%2Fdiscourse-2-2-0-beta8-pwa-error%2F106581

Preview (no idea how long this link will be good for): https://www.google.com/search?prvw=AHHjJUO7WRbGaPHHtHMRJbfhShyOyUOOHQ&q=previewid%3A4f63e9e8-25f5-420e-8ff3-0e8d720221cc&useragent=Mozilla%2F5.0+(Linux%3B+Android+7.1.1%3B+Nexus+6+Build%2FN6F27M)+AppleWebKit%2F537.36+(KHTML%2C+like+Gecko)+Chrome%2F66.0.3359.106+Mobile+Safari%2F537.36&filter=0&gws_rd=cr&newwindow=1&igu=1

10 Likes

I think we regressed here, I don’t see “top answer” thing anymore.

6 Likes

Is a fix in sight? I received a warning from Google about this:

2 Likes

No this usually means the answer is an image with no text.

3 Likes

As Jeff said, that is usually the reason we see this error. We’ve been fixing them as they’re reported. Can you link to the topic(s) flagged?

3 Likes

Yes, the “Top answer” section is not appearing for meta. But I am unable to see any recent changes in the “QAPage” schema code. Also, Google’s search preview tool not returning any issues. And in the preview, it is even rendering the section correctly.

I’m unable to see the “Top answer” section in SO, quora and other sites too. So I think we can’t do much on our side.

Edit: Actually the “Top answer” section is appearing correctly in my Android device. So the problem is only in the desktop.

9 Likes

I can confirm indeed that Discourse solved plugin shows only best answer in Google rich snippet.

I have tried the QnA plugin too but I cant seem to find a way to show multiple answers, including 1 best answer with votes and horizontally scrollable more answers with upvotes, this is being done by many popular forum sites like Quora, Reddit , Stackoverflow etc.

See att Quora snap as an e.g

How can I acheive the same behavior on my own discourse so that Google shows best answer, and multiple answers sorted with upvotes on each answer directly in Google search Rich snippet? And Google shows other posts too horizontally scrollable.
And it also shows other related questions of Quora below main topic, I want to achieve same behavior on my QnA site.

I really need to show my own discourse site answers like the above screenshot directly on Google search page with horizontal scrolling on other answers with upvotes. and also show related topics with answers count on Google rich snippet.

Can someone help me with this please?