Skip to content
Schema Generator
Menu

Discussion Forum Post schema generator (JSON-LD)

A forum thread or social post with its replies, written by users.

Rich result available: Discussion forum. Schema.org type DiscussionForumPosting.

1 of 7

DiscussionForumPosting rich results in Google

Threads can appear in the Discussions and forums feature. Use it for user-generated threads; for a single question with answers, a Q&A page fits better.

Google's discussion forum documentation

DiscussionForumPosting properties Google requires and recommends

PropertyStatusIn the form
headlineRecommendedThread title
textRequiredFirst post
authorRequiredPosted by
authorUrlRecommendedAuthor profile URL
datePublishedRequiredPosted
urlRecommendedThread URL
commentRecommendedReplies

Discussion Forum Post JSON-LD example

This is what the builder produces from the example data. Paste it into the page's HTML, in the <head> or the body.

{
  "@context": "https://schema.org",
  "@type": "DiscussionForumPosting",
  "headline": "Best tent for windy coastal campsites?",
  "text": "Heading to the Hebrides in May. What holds up in 50 km/h gusts?",
  "url": "https://forum.example/t/windy-tents",
  "datePublished": "2026-04-02T18:20",
  "author": {
    "@type": "Person",
    "name": "coastal_camper",
    "url": "https://forum.example/u/coastal_camper"
  },
  "interactionStatistic": {
    "@type": "InteractionCounter",
    "interactionType": "https://schema.org/LikeAction",
    "userInteractionCount": 14
  },
  "comment": [
    {
      "@type": "Comment",
      "text": "Tunnel tents pitched tail-to-wind have been fine for me.",
      "datePublished": "2026-04-02T19:05",
      "author": {
        "@type": "Person",
        "name": "hill_walker"
      }
    }
  ]
}