Making WordPress.org

Opened 5 years ago

Closed 5 years ago

#5079 closed defect (bug) (fixed)

Add structured data to download page

Reported by: jonoaldersonwp's profile jonoaldersonwp Owned by: dd32's profile dd32
Milestone: Priority: low
Component: General Keywords: seo
Cc:

Description (last modified by jonoaldersonwp)

The download page (wordpress.org/download/ and rosetta variants) should include the following script.

Note that:

  • URL/etc values should be localised where appropriate.
  • Software versions should be maintained/correct.
  • The description is taken from the page's meta description.
  • The 'date modified' and version values should correspond with the latest release (i.e., the time that latest.zip was last updated).
  • Google requires a operatingSystem property, which doesn't quite fit our context, so I've intentionally botched this into an array of vaguely-useful values. It'll do as-is, though feel free to refine+improve+extend.
<script type="application/ld+json">
[
    {
        "@context": "http://schema.org",
        "@type": [
            "SoftwareApplication",
            "Product"
        ],
        "name": "WordPress",
        "operatingSystem": ["Linux","Windows","Unix","Apache","NGINX"],
        "applicationCategory": "WebApplication",
        "url": "https://wordpress.org/download/",
        "description": "Download WordPress today, and get started on creating your website with one of the most powerful, popular, and customizable platforms in the world.",
        "softwareVersion": "5.3.2",
        "fileFormat": "application/zip",
        "downloadUrl": "https://wordpress.org/latest.zip",
        "dateModified": "2020-03-03T07:59:44+00:00",
        "offers": {
            "@type": "Offer",
            "url": "https://wordpress.org/download/",
            "price": "0.00",
            "priceCurrency": "USD",
            "seller": {
                "@type": "Organization",
                "name": "WordPress.org",
                "url": "https://wordpress.org"
            }
        }
    }
]
</script>

Attachments (2)

Screen Shot 2020-04-02 at 3.38.44 PM.png (216.9 KB) - added by dufresnesteven 5 years ago.
I've tested the block you provided with Google's structure data tool and got the following errors.
5079.diff (1.8 KB) - added by dufresnesteven 5 years ago.
TODO: I wasn't sure the best way to get the date modified. Anybody know how? Google Structured Data tool doesn't get upset without it, but i'm sure we should find a reliable way.

Download all attachments as: .zip

Change History (7)

#1 @jonoaldersonwp
5 years ago

  • Description modified (diff)

@dufresnesteven
5 years ago

I've tested the block you provided with Google's structure data tool and got the following errors.

#2 @dufresnesteven
5 years ago

@jonoaldersonwp It appears to want 2 offers because we have 2 types listed. What do you suggest?

#3 @jonoaldersonwp
5 years ago

  • Description modified (diff)

@dufresnesteven Their wording is poor.
Resolved with the addition of a "applicationCategory": "WebApplication" property/value pair.

@dufresnesteven
5 years ago

TODO: I wasn't sure the best way to get the date modified. Anybody know how? Google Structured Data tool doesn't get upset without it, but i'm sure we should find a reliable way.

#4 @dd32
5 years ago

  • Owner set to dd32
  • Status changed from new to accepted

#5 @dd32
5 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 9689:

WordPress.org: Downloads: Add Structured Data tags to the download pages.

Props dufresnesteven for initial patch.
Fixes #5079.

Note: See TracTickets for help on using tickets.