Discussion Forum Post schema generator
A forum thread or social post with its replies, written by users.
Rich result availableDiscussionForumPosting · Discussion forum
Guide
What Google does with DiscussionForumPosting markup
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.
Fields Google looks for
| Property | Status | In the form |
|---|---|---|
| headline | Recommended | Thread title |
| text | Required | First post |
| author | Required | Posted by |
| authorUrl | Recommended | Author profile URL |
| datePublished | Required | Posted |
| url | Recommended | Thread URL |
| comment | Recommended | Replies |
Example output
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"
}
}
]
}