我为我的网站视频编写了此架构代码,但在 Google 网站管理员工具上出现此错误:
Parsing error: Missing ',' or ']' in array declaration
为什么会这样?我的架构代码:
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:title" content="{{TITLE}}">
<meta name="twitter:description" content="{{DESC}}">
<meta name="twitter:creator" content="@author_handle">
<meta name="twitter:image" content="{{THUMB}}">
<!-- Open Graph data -->
<meta property="og:title" content="{{TITLE}}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{URL}}" />
<meta property="og:image" content="{{THUMB}}" />
<meta property="og:description" content="{{DESC}}" />
<meta name="thumbnail" content="{{THUMB}}" />
<?php if (!empty($pt->get_video)) { ?>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "MusicGroup",
"image": [
"<?php echo $pt->get_video->thumbnail; ?>",
"name": "<?php echo $pt->get_video->title; ?>",
"subjectOf": {
"@type": "VideoObject",
"description": "<?php echo $pt->get_video->markup_description; ?>",
"duration": "<?php echo $pt->get_video->duration; ?>",
"name": "<?php echo $pt->get_video->title; ?>",
"thumbnailUrl": "<?php echo $pt->get_video->thumbnail; ?>",
"uploadDate": "<?php echo $pt->get_video->uploadDate; ?>"
}
</script>
<?php } ?>
在 Google 网站管理员工具中,“名称”元标记发生错误,其内容颜色为红色:
script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "MusicGroup",
"image": [
"https://s2.dmcdn.net/v/TN8f11XWz9fkrKVbR/x1080",
"name": "how to play minecraft survival step by step Ultimate Guide 2019",
"subjectOf": {
"@type": "VideoObject",
"description": "How To Play Minecraft Survival Step By Step Ultimate Guide 2019 is your ultimate guide for Minecraft survival, whether you are a beginner or an expert looking to learn the ins and outs of survival. This guide will show you everything you need to know about survival mode in Minecraft! From how to survive your first night to know the best ways to make money in Minecraft, How To Play Minecraft Survival Step By Step Ultimate Guide 2019 will help you succeed in the game!",
"duration": "23:53",
"name": "how to play minecraft survival step by step Ultimate Guide 2019",
"thumbnailUrl": "https://s2.dmcdn.net/v/TN8f11XWz9fkrKVbR/x1080",
"uploadDate": ""
}
</script>