Page Meta
This plugin uses custom fields to allow the page title tag to be customised and differ from the actual page title. Both meta descriptions and keywords can also be added if required. Page meta details can be modified on any publicly accessible post type, such as posts and pages, as well as custom pos
About this tool.
This plugin uses custom fields to allow the page title tag to be customised and differ from the actual page title.
Both meta descriptions and keywords can also be added if required.
Page meta details can be modified on any publicly accessible post type, such as posts and pages, as well as custom post types.
Theme and plugin developers should note that it is possible override the page title within your templates by setting $wppm_title = 'Newly defined title'; before the call to get_header(); .
Screenshots & previews.
Getting started.
Here we go:
- 01Upload the pagemeta folder to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Choose which post types the plugin should be enabled on via the Settings > Reading options.
Frequently asked questions.
What custom field names does it use?
The field names used are _pagemeta_title , _pagemeta_description and _pagemeta_keywords .
The underscore prefix prevents it from being displayed in the list of custom fields.
How do I output the custom title?
If a custom title is set for a post type, the plugin will automatically hook into the wp_title function to modify the output.
This uses the parameters passed via wp_title and will completely override the title.
You can customise the output further using the pagemeta_title filter, which uses the same parameters plus the original post title value.
In this example we prefix the original title to the custom title.
add_filter( 'pagemeta_title', function( $title, $sep, $seplocation, $original_title ) { return $original_title . $title; }, 10, 4 );
Please refer to the Codex for further information on the add_filter .
Why are the meta tags not added to my pages?
This plugin makes use of the wp_head hook action, therefore in order for it to work there must be a call to wp_head in the current theme header file.