WordPress SEO by Yoast

From IndieWeb
Jump to: navigation, search


WordPress SEO by Yoast is a plugin for WordPress that offers a variety of features intended to improve SEO.

IndieWeb Examples

Features

  • Additional fields "SEO Title" and "Meta Description" are added to each post. If filled in, the title, meta, and OGP meta elements will be filled in accordingly. WordPress uses its built-in title field to generate URL slugs, so this separate set of fields can account for a different post title in the title element vs. the page heading and the URL slug. Reference discussion on 2015-05-14.
  • Add Twitter Cards meta data to your posts [1]
  • . . .

Criticism

WordPress Criticisms

WordPress 4.1 introduced support for the title-tag in October of 2014.

This resolved a four year old issue filed by Yoast, the creator of this plugin.

"Right now, title tags in themes are created by using wp_title and than adding on custom code, usually bloginfo('name'), sometimes other code. Because there's basically no way for a plugin to control the entire content of a title tag, all major SEO plugins resort to output buffering. "https://core.trac.wordpress.org/ticket/18548##Right+now,+title+tags

The solution is pending.

"To maintain full forward compatibility, plugins can not check for theme support of title tags, and are discouraged from building functionality around it just yet. The long term plan is to enable users to manage document titles from their admin, independent of which theme theyโ€™re using. At that time it will also become more plugin friendly. To make sure this can be achieved however, it was important to rule out backwards compatibility concerns as much as possible."https://make.wordpress.org/core/2014/10/29/title-tags-in-4-1/##To+maintain+full+forward

As of August 2015, title tag support is required in all themes in the WordPress repository...https://make.wordpress.org/themes/2015/08/25/title-tag-support-now-required/.

rel-canonical links

The plugin adds rel-canonical links, but it does not assume that the http and https versions of a page are the same, so they will have different rel-canonical links by default. There does not appear to be any setting in the plugin to change this behavior.

The plugin does have a filter, wpseo_canonical, so you can alter the canonical link before it's displayed.

For example, to make the canonical link always be https:

<?php add_filter('wpseo_canonical', function($url) { return str_replace('http://', 'https://', $url); }); ?>

https://yoast.com/wordpress/plugins/seo/api/

See Also