Schema output for Local SEO for WordPress

The schema output for Local SEO for WordPress builds upon Yoast SEO for WordPress' base schema output, to add additional local business detail (such as addresses and opening hours).

Single location

Homepage

  • Organization
    • Type filtered to also have our LocalBusiness or more specific type.
    • Filtered to have a location attribute pointing to Place.
    • Filtered to have an address attribute pointing to the PostalAddress within Place.
    • Filtered to add telephonefaxNumberpriceRangeareaServedvatID and taxIDwhen available.
  • Place - added by Local SEO
    • Contains address of type PostalAddress with its own @id.
    • Has geo attribute of type GeoCoordinates.
    • Has openingHoursSpecification.
    • Has telephone attribute.
    • Has faxNumber attribute.

Posts

Like Single location homepage, with added:

    • Article
      • Referencing Organization as publisher. This is the reason Organization needs to have our LocalBusiness type and Organization, as Google's SDTT doesn't allow LocalBusiness to be an Organization.

Multi location - all locations part of one organization

Homepage

Like Single location homepage, with these changes:

  • Organization:
    • Add subOrganization attribute with an array of all locations.
      • Each location is an Organization type (its own type) with as its only attribute urlpointing to single location.
    • Do not add location attribute.
    • Do not add address attribute.
    • Do not add telephonefaxNumberpriceRangeareaServedvatID and taxID.
  • Place removed.

Location archive

Like Multi location - one organization homepage, with these changes:

  • itemList with all locations referenced by URL.
    • Set this itemList as mainEntityOfPage, referencing WebPage.
    • Each item has attribute url pointing to single location page.
    • Each item has attribute name of single location.

Single location page

Like Multi location - one organization homepage, with these changes:

  • Main Organization - Don't add subOrganization list.
  • Add Organization with the attributes of this location.
    • Include telephonefaxNumberpriceRangeareaServedvatID and taxID when available.
    • Set this Organization as mainEntityOfPage, referencing WebPage.
      • Reference the website's main Organization as this Organization's parentOrganization.
      • Reference Place as this Organization's location.
      • Reference Place's PostalAddress as this Organization's address.
  • Add Place for this location.

Multi location - all locations separate

Homepage

Like Single location homepage, with these changes:

  • Organization:
    • Don't filter type.
    • Remove location attribute.
    • Remove address attribute.
  • Place removed.

Location archive

Like Multi location - all locations separate homepage, with these changes:

  • itemList with all locations referenced by URL.
    • Set this itemList as mainEntityOfPage, referencing WebPage.
    • Each item has attribute url pointing to single location page.
    • Each item has attribute name of single location.

Single location page

Like Multi location - all locations separate homepage, with these changes:

  • Add Organization with the attributes of this location.
    • Include telephonefaxNumberpriceRangeareaServedvatID and taxID when available.
    • Set this Organization as mainEntityOfPage, referencing WebPage.
      • Reference Place as this Organization's location.
      • Reference Place's PostalAddress as this Organization's address.
  • Add Place for this location.

This way, publisher is still set to the site's Organization, nothing in the Schema claims affiliation between the Organization shown and the Organization responsible for the site.