[wp-meta] [Making WordPress.org] #4280: Add schema markup to profile templates
Making WordPress.org
noreply at wordpress.org
Fri Mar 15 10:22:26 UTC 2019
#4280: Add schema markup to profile templates
----------------------------+--------------------
Reporter: jonoaldersonwp | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: Profiles | Keywords: seo
----------------------------+--------------------
The following code should be adapted and added to profile templates
(values from https://profiles.wordpress.org/jonoaldersonwp/ used for
reference).
{{{
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@graph":[
{
"@type":"Organization",
"@id":"https://wordpress.org/#organization",
"url":"https://wordpress.org/",
"name":"WordPress",
"logo":{
"@type":"ImageObject",
"@id":"https://wordpress.org/#logo",
"url":"https://s.w.org/style/images/about/WordPress-
logotype-wmark.png"
},
"sameAs":[
"https://www.facebook.com/WordPress/",
"https://twitter.com/WordPress",
"https://en.wikipedia.org/wiki/WordPress"
]
},
{
"@type":"WebSite",
"@id":"https://wordpress.org/#website",
"url":"https://wordpress.org/",
"name":"WordPress.org",
"publisher":{
"@id":"https://wordpress.org/#organization"
}
},
{
"@type":["WebPage","ProfilePage"],
"@id":"https://profiles.wordpress.org/jonoaldersonwp/",
"url":"https://profiles.wordpress.org/jonoaldersonwp/",
"inLanguage":"en",
"name":"Blog Tool, Publishing Platform, and CMS - WordPress",
"description":"Open source software which you can use to
easily create a beautiful website, blog, or app.",
"isPartOf":{
"@id":"https://wordpress.org/#website"
}
},
{
"@type":"Person",
"@id":"https://profiles.wordpress.org/jonoaldersonwp/#profile",
"name":"Jono Alderson",
"jobTitle":"Special Ops",
"worksFor": {
"@type":"Organization",
"name":"Yoast"
},
"sameAs": [
"https://www.facebook.com/jonathan.alderson",
"https://www.linkedin.com/in/jonoalderson/",
"https://twitter.com/jonoalderson"
],
"mainEntityOfPage": { "@id" :
"https://profiles.wordpress.org/jonoaldersonwp/" }
}
]
}
</script>
}}}
NOTE: Optional nodes (like `worksFor`) should only be included when the
relevant profile fields are populated.
NOTE: https://meta.trac.wordpress.org/ticket/4277 changes the title and
description contents; values here should also change and use the new
values specified in #4277.
NOTE: https://meta.trac.wordpress.org/ticket/4278 is required to
retrieve/set social profiles in the `sameAs` array.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4280>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list