Fine tune your WordPress for SEO: rewrite title, add meta tags, canonical links and more. Out-of-the-box settings are a good starting point for blogs.
Plugin Homepage: Meta SEO Pack
Plugin Homepage on WordPress.org: Meta SEO Pack
Author Homepage: Poradnik Webmastera
Author: Daniel Frużyński
One of the biggest sources of traffic for your blog are Search Engines - mainly Google, Yahoo! and Bing (formerly MSN). Therefore it is crucial to optimize WordPress to make it SEO-friendly. Many things are already done in WordPress itself, but still there is a room for many improvements.
If you care about Search Engines and your position in search results, you should install this plugin. If you are a beginner, default settings will be good for you. If you are an advanced user, you have many options to fine-tune your blog.
Some of the plugin features are:
<title>
tag to get most of it;<link rel="canonical">
to specify preferred URL for each page;rel="nofollow"
to links in various places;Available translations:
meta-seo-pack
directory to the /wp-content/plugins/
directorytitle
tag?Meta SEO Pack uses following title formats as a base for title of different pages (configurable):
%blog_name%
%title% | %categories% | %blog_name%
%title% | %blog_name%
%title% | %categories% | %blog_name%
%categories% | Categories | %blog_name%
%tag% | Tags | %blog_name%
%tax_name% | %tax_label% | %blog_name%
Archive for %date% | %blog_name%
%author_name% | Authors | %blog_name%
Search results for %search% | %blog_name%
There are also extra rewriting rules for subsequent pages of archives, posts, pages and comments. This way you will avoid duplicate title problems (reported in Google Webmasters Tools):
%desc% - Page %n%
%desc% - Comments Page %n%
meta keywords
tag?All pages uses configured Default keywords as value for meta keywords
tag. Some of the pages also adds some extra keywords (configurable):
Plugin does not add extra keywords for subpages.
meta description
tag?Meta SEO Pack either uses entered description, excerpt or generate it from content. This depends on page (configurable):
%blog_name% - %blog_desc%
)Description is also additionally changed for subsequent pages of archives, posts, pages and comments. This way you will avoid duplicate description problems (reported in Google Webmasters Tools):
%description% - page %n%
%description% - comments page %n%
meta robots
tag?Meta SEO Pack adds noindex,follow
as a value of meta robots
for pages, in order to avoid Duplicate Content problem. follow
is added to make sure you will keep link juice of links leading to noindexed pages. Here is the list of pages which can be noindexed (configurable):
Meta SEO Pack can also add noodp
and noydir
, in order to prevent Search Engines from using descriptions entered in DMOZ (ODP) or Yahoo! Directory as description for page.
You can also enter your meta robots value for every Post and Page - when you do so, it will take precedence over default configuration. Meta SEO Pack will add noodp
and noydir
if you checked these options.
You can also noindex your feeds - Meta SEO Pack can both add meta robots
tag to feeds and send X-Robots-Tag
HTTP Header.
This plugin is provided for free, so this footer is the only way I can get credit from happy users. Of course you can disable it - just go to the plugin Options page, scroll to the bottom, uncheck "Add link to Meta SEO Pack" and save options.
Meta SEO Pack internally calls many filters. Some of them are internal WordPress filters (some parts of plugin code bases on core WordPress code), but there is also a group of plugin-specific filters. You can use them to integrate your plugin with Meta SEO Pack. Full list of them you can find below.
Meta SEO Pack uses two kinds of filters to get metadata information (title, keywords, etc.): ones named msp_get_something
and msp_something
. The former ones are called when Meta SEO Pack does not support particular page type - you can use them to return metadata for custom page types generated by your plugin. The latter ones are called to do postprocessing of metadata. By default plugin registers three default WordPress filters (wptexturize
, convert_chars
and esc_html
) to postprocess title, keywords and description values.
msp_get_title_format
- filter called when Meta SEO Pack does not support some kind of pages internally. You can use it to return your title format (with %name%
tags);msp_get_title_data
- filter called just after msp_get_title_format
filter, to get array of values, which later are used to replace %name%
tags in title. Note: keys in arrays should be added without percent (%
) marks;msp_title
- postprocessing of title.msp_get_keywords
- filter called when Meta SEO Pack does not support some kind of pages internally. You can use it to return your meta keywords;msp_keywords
- postprocessing of meta keywords.msp_get_description
- filter called when Meta SEO Pack does not support some kind of pages internally. You can use it to return your meta description;msp_description
- postprocessing of meta description.msp_get_robots
- filter called when Meta SEO Pack does not support some kind of pages internally. You can use it to return your meta robots;msp_robots
- postprocessing of meta robots.msp_get_canonical
- filter called when Meta SEO Pack does not support some kind of pages internally. You can use it to return your canonical URL;msp_canonical
- postprocessing of canonical URL.Meta SEO Pack exposes few functions too. You can use them in your plugin (or theme) too. Please use them instead of accessing class members and options directly - they may change in some version. On the other hand, functions listed here should not change.
msp_get_option
- get value of selected Meta SEO Pack options. Functions returns option value, or false
if option name is not supported. You can query values of following options:
rewrite_title
- true
if title rewriting is enabled;add_keywords
- true
if meta keywords are enabled;add_description
- true
if meta description is enabled;add_robots
- true
if meta robots are enabled;add_canonical
- true
if canonical URLs are enabled.Integrate title generation
Meta SEO Pack calls `wp_title()` function, so you can use `wp_title` filter to provide your title. Of course you can also take advantage of Meta SEO Pack integration - here is the code:
// Check if Meta SEO Pack is present and title rewriting is enabled if ( function_exists( 'msp_get_option' ) && msp_get_option( 'rewrite_title' ) ) { // Register filters for Meta SEO Pack add_filter( 'msp_get_title_format', 'my_title_format' ); add_filter( 'msp_get_title_data', 'my_title_data' ); } else { // Register default WordPress filter add_filter( 'wp_title', 'my_title', 10, 3 ); } // Return title format function my_title_format( $format ) { if ( this_is_my_page() ) { $format = '%f1% | %f2% | %blog_name%'; } return $format; } // Return parameters for title format function my_title_data( $data ) { if ( this_is_my_page() ) { $data['f1'] = 'Value 1'; $data['f2'] = 'Value 2'; } return $data; } // Return title for wp_title() function function wp_title( $title, $sep, $seplocation ) { if ( this_is_my_page() ) { if ( $seplocation == 'right' ) { $title = "Value 1 $sep Value 2 $sep "; } else { $title = " $sep Value 2 $sep Value 1"; } } return $title; }
2.1.1
2.1
rel="nofollow"
;1.2
rel="nofollow"
to links to admin section2.0
1.1.2
1.1.1
1.1
1.0.1
1.0