SEO Meta Tags WordPress Plugin By WTM LAB
Plugin Header:
Uses the brand name WTMLAB and the plugin name “WTMLab-Meta.”
Default Tag Removal:
Removes WordPress’s default <title>
, canonical, and robots meta tags.
Dynamic Title for Singular Pages:
The plugin uses the custom meta title (if provided) from the meta field _wtm_meta_title
to override the default document title.
Meta Box for Singular Posts/Pages:
Provides a meta box in the post/page editor to enter:
Custom Head Code (for any extra code you want in the <head>
)
Custom Meta Title (also used for OG and Twitter titles)
Meta Description (with fallback to post excerpt/content)
OG Description and Twitter Description (defaulting to the meta description)
OG Image and Twitter Image URLs (with fallback to the featured image)
Canonical URL (defaulting to the post permalink)
Robots settings (No Index/No Follow checkboxes)
Meta Fields for Taxonomy Terms:
Adds fields for meta title, meta description, and custom head code to category and tag add/edit forms.
User Meta for Author Pages:
Adds extra fields to user profiles so that custom meta titles and descriptions can be set for author pages.
Archive Options:
Provides an options page under Settings → Archive Meta Tags to set default meta title, meta description, custom head code, canonical URL, and robots meta for archive pages.
The plugin outputs meta tags (except the <title>
tag on singular pages, which is handled by the filter) in the head at priority 1 so that they appear early. Separate output functions handle singular, term, author, and archive pages
This file should pass the WordPress plugin check. Please test it thoroughly in your environment and adjust as needed.
Happy coding with WTMLab-Meta by WTMLAB!