DEV Community

kumamon
kumamon

Posted on

【コピペ】WordPressで使える運営者の構造化データ

<script type="application/ld+json">
{
    "@context":"http://schema.org",
    "@type":"website",
    "name":"★★サイト名★★",
    "inLanguage":"jp",
    "publisher": {
    "@type": "Organization",
    "name": "★★運営者名★★",
    "logo": {
        "@type": "ImageObject",
        "url": "★★ロゴ画像のURL★★"
    }},
    "copyrightYear":"★★2019-01-01T10:50:37+0000★★",
    "headline":"<?php echo meta_set('title'); ?>",
    "description":"<?php echo meta_set('description'); ?>",
    "url":"<?=home_url().$_SERVER["REQUEST_URI"]; ?>"
}
</script>

Top comments (0)