WP Manifestindependent plugin directory
manifest / seo / cgit-wp-yoast-headings

Castlegate IT Yoast Heading Generator archived

Adds "SEO heading" generation support for compatibility with Yoast.

by Castlegate IT · github.com/castlegateit/cgit-wp-yoast-headings · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/castlegateit/cgit-wp-yoast-headings/archive/refs/heads/master.zip

Readme

Castlegate IT WP Yoast Headings

This plugin is no longer maintained. The SEO Headings plugin is now recommended instead.


Castlegate IT WP Yoast Headings is a WordPress plugin that provides functionality to output text retrieved from Yoast's generated title tag and converted into comma-and-space separated text.

The preference order for the generated heading is:

  1. Any string passed to the function.
  2. The SEO heading custom field contents, if present.
  3. The Yoast Title for the page, if one exists.
  4. The page title.

The plugin provides a function that can be used in your plugin or theme:

  • cgit_yoast_heading($str) returns the title tag generated as above, or the override $str if provided.

You can also use the YoastHeading class directly:

$yoastHeading = new \Cgit\YoastHeading\YoastHeading('My heading here');
echo $yoastHeading->output(); // Comma-and-space separated string.

License

Released under the MIT License. See LICENSE for details.

Read the full README on GitHub →