Расширяем All In One SEO Pack

Июнь 1st, 2011 |


All In One SEO Pack uses next “custom fields”

  • _aioseop_title – For the Post Title
  • _aioseop_description – For the post description
  • _aioseop_keywords – For the post keywords
  • _aioseop_disable – Disable on this page/post
  • _aioseop_titleatr
  • _aioseop_menulabel

Filters

  • aioseop_home_page_title – Static front page title
  • single_post_title – Single post title (if “is single”)
  • aioseop_title_page – Page title (if “is page”)
  • aioseop_description – Description (if “is single” or “is page” or “is static posts page”)
  • aioseop_description_override – (if not “is home” and not “is paged”)
  • aioseop_keywords – Keywords
  • aioseop_canonical_url – Canonical URL
  • localization – Localization

Sample

add_filter('aioseop_title_page', 'fn_title');
add_filter('aioseop_description', 'fn_description');
add_filter('aioseop_keywords', 'fn_keywords');

function fn_title_page($text) {
    return "Title!";
}

function fn_description($text) {
    return "description!";
}

function fn_keywords($text) {
    return "keywords, keywords!";
}

Plugin Options

global $aioseop_options;
// ...
$aioseop_options = get_option('aioseop_options');
// ...
$aioseop_options = array(
	"aiosp_can"=>1,
	"aiosp_donate"=>0,
	"aiosp_home_title"=>null,
	"aiosp_home_description"=>'',
	"aiosp_home_keywords"=>null,
	"aiosp_max_words_excerpt"=>'something',
	"aiosp_rewrite_titles"=>1,
	"aiosp_post_title_format"=>'%post_title% | %blog_title%',
	"aiosp_page_title_format"=>'%page_title% | %blog_title%',
	"aiosp_category_title_format"=>'%category_title% | %blog_title%',
	"aiosp_archive_title_format"=>'%date% | %blog_title%',
	"aiosp_tag_title_format"=>'%tag% | %blog_title%',
	"aiosp_search_title_format"=>'%search% | %blog_title%',
	"aiosp_description_format"=>'%description%',
	"aiosp_404_title_format"=>'Nothing found for %request_words%',
	"aiosp_paged_format"=>' - Part %page%',
	"aiosp_use_categories"=>0,
	"aiosp_dynamic_postspage_keywords"=>1,
	"aiosp_category_noindex"=>1,
	"aiosp_archive_noindex"=>1,
	"aiosp_tags_noindex"=>0,
	"aiosp_cap_cats"=>1,
	"aiosp_generate_descriptions"=>1,
	"aiosp_debug_info"=>null,
	"aiosp_post_meta_tags"=>'',
	"aiosp_enablecpost"=>'0',
	"aiosp_page_meta_tags"=>'',
	"aiosp_home_meta_tags"=>'',
	"aiosp_enabled" =>0,
	"aiosp_use_tags_as_keywords" =>1,
	"aiosp_seopostcol" => 1,
	"aiosp_seocustptcol" => 0,
	"aiosp_posttypecolumns" => array('post','page'),
	"aiosp_do_log"=>null);

There are no comments yet

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *

*