DEV Community

kumamon
kumamon

Posted on

2 1

【コピペ】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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay