适用于论坛主帖、社区讨论串,Google 用于「讨论和论坛」等功能。问答形式的论坛改用 QAPage。2026-03 Google 增补了 commentCount、digitalSourceType 等支持属性。
| 属性 | 类型 | 必需/推荐 | 说明 |
|---|---|---|---|
| author | Person 或 Organization | 必需 | 发帖人 |
| author.name | Text | 必需 | 发帖人名称 |
| datePublished | DateTime | 必需 | 发布时间 |
| text / image / video | Text / ImageObject / VideoObject | 必需三选一 | 帖子内容;只引用另一页上的帖子(带外部 url)时可省略 |
| headline / name | Text | 推荐 | 标题 |
| url | URL | 推荐 | 帖子 canonical |
| author.url | URL | 推荐 | 发帖人主页,建议该页加 ProfilePage 标记 |
| comment | Comment 数组 | 推荐 | 回复列表 |
| commentCount | Integer | 推荐 | 评论条数 |
| interactionStatistic | InteractionCounter | 推荐 | 点赞等互动 |
| dateModified | DateTime | 推荐 | 最后修改 |
| sharedContent | CreativeWork | 推荐 | 转发来源 |
| digitalSourceType | Text | 推荐 | 数字来源类型(人工/AI等) |
完整 JSON-LD 示例:
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"mainEntityOfPage": "https://forum.example.com/thread/123",
"headline": "Best practices for home security camera placement",
"text": "I just installed two outdoor cameras and wondering about optimal placement. Any tips from experienced users?",
"author": {
"@type": "Person",
"name": "SecurityEnthusiast",
"url": "https://forum.example.com/users/securityenthusiast"
},
"datePublished": "2024-11-20T10:30:00-05:00",
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "https://schema.org/LikeAction",
"userInteractionCount": 24
},
"commentCount": 3,
"comment": [
{
"@type": "Comment",
"text": "Place them at 8-10 feet height, angled slightly downward for the best facial recognition range.",
"author": {
"@type": "Person",
"name": "TechPro42",
"url": "https://forum.example.com/users/techpro42"
},
"datePublished": "2024-11-20T11:15:00-05:00"
},
{
"@type": "Comment",
"text": "Don't forget to consider the field of view. Most cameras have a 130-degree FOV which works best covering entry points.",
"author": {
"@type": "Person",
"name": "HomeGuard",
"url": "https://forum.example.com/users/homeguard"
},
"datePublished": "2024-11-20T14:22:00-05:00"
}
]
}
来源
- Discussion forum (DiscussionForumPosting) structured data,https://developers.google.com/search/docs/appearance/structured-data/discussion-forum(2026-10-05 核对)
