Meta SEO Pack 2.2 Readme

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

Description

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:

Available translations:

Installation

  1. Upload meta-seo-pack directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to the 'Meta SEO Pack' menu and configure it if you want (you can also leave default configuration as-is if you are a beginner)
  4. Enjoy :)

Frequently Asked Questions

How Meta SEO Pack rewrites title tag?

Meta SEO Pack uses following title formats as a base for title of different pages (configurable):

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):

How Meta SEO Pack generates value for 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.

How Meta SEO Pack generates value for meta description tag?

Meta SEO Pack either uses entered description, excerpt or generate it from content. This depends on page (configurable):

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):

How Meta SEO Pack generates value for 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.

How to remove footer added by Meta SEO Pack?

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.

Integration manual for plugin developers

Filters usage in Meta SEO Pack

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.

Filters for title rewriting

Filters for meta keywords

Filters for meta description

Filters for meta robots

Filters for canonical URL

Other functions

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.

Examples

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;
}

Changelog

2.2

2.1.3

2.1.2

2.1.1

2.1

1.2

2.0

1.1.2

1.1.1

1.1

1.0.1

1.0