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
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.zipReadme
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:
- Any string passed to the function.
- The SEO heading custom field contents, if present.
- The Yoast Title for the page, if one exists.
- 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$strif 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.