Custom Meta Description
A lightweight WordPress plugin that outputs a clean and safe <meta name="description"> tag for singular content using a custom field, the post excerpt, or trimmed post content. It includes sanitization, REST meta registration, duplicate-output protection for common SEO plugins, and developer filters.
by guisfus · github.com/guisfus/wp-custom-meta-description · website
★ 2stars
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/guisfus/wp-custom-meta-description/archive/refs/heads/main.zipDeclares an update source (false), so updates arrive through the plugin's own updater.
From the readme
Custom Meta Description
A lightweight WordPress plugin that outputs a tag for singular content using a custom field, the post excerpt, or a trimmed version of the post content.
Features
- Outputs a meta description on posts, pages, and custom post types.
- Uses a dedicated custom field: metadescription.
- Falls back to the manual excerpt when no custom description is set.
- Falls back to trimmed post content when no custom field or excerpt exists.
- Registers the custom meta field for REST API compatibility.
- Skips output automatically when common SEO plugins are detected, helping avoid duplicate meta description tags.
- Provides an optional filter to limit the final description length, without cutting words when possible.
- Provides filters for developers who want to customize or disable the output.
Requirements
- WordPress 6.0 or higher.
- PHP 7.4 or higher.
Installation
The GitHub repository uses the wp- prefix only to identify it as a WordPress plugin repository. When installing the plugin in WordPress, use the plugin folder name without the wp- prefix.
Correct plugin folder:
Correct ZIP structure:
Do not install it as:
Backend installation:
1. Create a ZIP with c
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.