Schema
DiscussionForumPosting Schema
Schema.org DiscussionForumPosting
- Type:
defineDiscussionForumPosting(input?: DiscussionForumPosting)
Describes a user-generated forum or social media post.
Useful Links
Example
defineDiscussionForumPosting({
headline: 'Very Popular Thread',
text: 'I went to the concert.',
author: {
name: 'Katie Pope',
url: '/users/katie',
},
datePublished: new Date('2026-07-01T08:00:00.000Z'),
interactionStatistic: {
'@type': 'InteractionCounter',
'interactionType': 'LikeAction',
'userInteractionCount': 27,
},
comment: {
text: 'Who did you go with?',
author: {
name: 'Saul Douglas',
},
datePublished: '2026-07-01T09:00:00+00:00',
},
})
For a root post, Google requires author, datePublished, and content supplied through text, image, or video. Posts represented on another page with an external url may omit the content property. Use @type: 'SocialMediaPosting' for social platforms that are not organized as forums.
Defaults and resolves
@typedefaults toDiscussionForumPosting.@iddefaults to${canonicalUrl}#discussion-forum-posting.- Authors resolve to Person or Organization nodes.
- Comments, images, videos, and dates resolve recursively.
- A root post references the primary WebPage through
mainEntityOfPage.
Did this page help you?
Dataset Schema
Use defineDataset() to add Dataset structured data. Make research data discoverable in Google Dataset Search with metadata and download links.
EmployerAggregateRating Schema
Add Google employer rating structured data with defineEmployerAggregateRating(), including the reviewed organization and aggregate score.