Wordpress plugins
Meta SEO Pack

Meta SEO Pack

Version : 2.2.1
Tested up to : 2.9.9
Number of download : 70102
Average rating : 4 / 5 on 1 votes 1 votes, 4 avg.rating

Screenshots

Meta SEO Pack
Meta SEO Pack
Meta SEO Pack
Meta SEO Pack

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: Rewrite <title> tag to get most of it; Add Meta Keywords, Meta Description and Meta Robots tags to all blog pages; Use entered tags and descriptions for Meta Keywords and Meta Description tags, or generate them from content; Prevent Search Engines from indexing archive pages and feeds, in order to avoid Duplicate Content problem; Prevent Search Engines from using descriptions entered in DMOZ (ODP) or Yahoo! Directory as description for page; Add <link rel="canonical"> to specify preferred URL for each page; Add rel="nofollow" to links in various places; Allows to enter custom meta keywords, description and robots for every post and page; Good default configuration for beginners and a lot of configuration options for advanced users (look for new ‘Meta SEO Pack’ menu); Full support for custom taxonomies; Custom filters – other plugins can integrate itself with Meta SEO Pack; Detailed information about <title> rewriting and Meta Tags generation you can find in FAQ. Available translations: English Polish (pl_PL) – done by me Dutch (nl_NL) – thanks Rene Changelog 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 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. Filters for meta keywords 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. Filters for meta description 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. Filters for meta robots 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. Filters for canonical URL 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. 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. 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. 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; }

Download now