增加面包屑结构化标签测试
parent
f678d36064
commit
508e870471
@ -0,0 +1,25 @@
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [{
|
||||
"@type": "ListItem",
|
||||
"position": 1,
|
||||
"name": "Home",
|
||||
"item": "https://www.chinahighlights.com/"
|
||||
}
|
||||
<?php foreach ($breadcrumb_data as $index => $item) {?>
|
||||
,{
|
||||
"@type": "ListItem",
|
||||
"position": <?php echo ($index + 2) ?>,
|
||||
"name": "<?php echo $item['ic_url_title'] ?>",
|
||||
"item": "https://www.chinahighlights.com<?php echo $item['ic_url'] ?>"
|
||||
}
|
||||
<?php }?>
|
||||
,{
|
||||
"@type": "ListItem",
|
||||
"position": <?php echo (count($breadcrumb_data) + 2) ?>,
|
||||
"name": "<?php echo $information->ic_title ?>"
|
||||
}]
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue