Hreflang

Adds support for adding SEO-friendly hreflang html tags. From Wikipedia:

Hreflang specifies the language and optional geographic restrictions for a document. Hreflang is interpreted by search engines and can be used by webmasters to clarify the lingual and geographical targeting of a website.

After setting up which blogs supply which languages, and optionally which blog provides the x-default language, the hreflang links will be added automatically on all of the specified blogs.

Screenshots

Notes

The plugin does some basic checks when inserting the languages:

  • If the shown page is a post, it checks to see whether a post with the exact same slug exists on each setup blog.
  • If the shown page is an archive, the taxonomy is checked for existence on each setup blog.
  • If the page is the front page, it is assumed that the other blogs also have a front page. :)

For developers, there is an action you can hook into to fine-tune the hreflang tags before display. See this snippet on how to modify the hreflang links dynamically.

Where to buy

This add-on is a part of the following packs:

Comments

  1. Hi, one short question about this addon.

    We have a multisite with a site for each language. As an Example, we have an “About us” Page on all sites. And it would be great that for all these sites the hreflang could be created automatically.

    Would it also work if we change the permalink in a specific site? so that all other languages stay connected?

    1. hreflang will automatically create the links as long as the post is linked to other posts.

      You can change whatever you want with each post (including the permalink) as long as the linking remains.

      Also, if you are unable to keep the linking, there is an action you can hook into to programmatically add or remove hreflang links.

Leave a Reply

Your email address will not be published. Required fields are marked *