WorldTraffic
есть в headere такой код (тема twenty ten)
<?php
/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
этот код порти всю картину, а именно он вставляет <meta name="description" content="и сюда вставляет первый обзац статьи"
что не совсем уместно при том что я использую All in One SEO Pack в котором указываю тайтл дескрипшин и кейворд.
All in One SEO Pack выводит тот дескрипшин чуть ниже и получается куйня
когда проверяешь страницу на релевантность, то берется дескрипшгин который первый и получается не совсем красиво, скорее всего так ПС тоже делает берет первый.
если этот код убрать из хеадера то тогда плагин All in One SEO Pack тоже не выводится
можно это обойти? т.е. что бы код не вставлял левый <meta name="description"
спасибо
WorldTraffic
вот уточню что именно вставляется
<link rel="alternate" type="application/rss+xml" title="title » Лента" href="http://domain.com/feed">
<link rel="alternate" type="application/rss+xml" title="title » Лента комментариев" href="http://domain.com/comments/feed">
<link rel="stylesheet" id="admin-bar-css" href="http://domain.com/wordpress/wp-includes/css/admin-bar.css?ver=20110622" type="text/css" media="all">
<link rel="stylesheet" id="wp-pagenavi-css" href="http://domain.com/wordpress/wp-content/plugins/wp-pagenavi/pagenavi-css.css?ver=2.70" type="text/css" media="all">
<link rel="stylesheet" href="http://domain.com/wordpress/wp-content/plugins/share-buttons/css/share-buttons-user.css" type="text/css">
<meta name="description" content="
вот тут идет более 200 символов статьи">
<meta property="og:title" content="
тайтл">
<meta property="og:description" content="
опять кусок статьи">
<link href="http://stg.odnoklassniki.ru/share/odkl_share.css" rel="stylesheet">
<script type="text/javascript" src="http://domain.com/wordpress/wp-includes/js/l10n.js?ver=20101110"></script>
<script type="text/javascript" src="http://domain.com/wordpress/wp-content/plugins/share-buttons/js/share-buttons.js?ver=3.2.1"></script>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js?ver=3.2.1"></script>
<script type="text/javascript" src="http://vkontakte.ru/js/api/share.js?11&ver=3.2.1"></script>
<script type="text/javascript" src="http://userapi.com/js/api/openapi.js?34&ver=3.2.1"></script>
<script type="text/javascript" src="http://stg.odnoklassniki.ru/share/odkl_share.js?ver=3.2.1"></script>
<script type="text/javascript" src="http://domain.com/wordpress/wp-content/plugins/share-buttons/js/odkl_init.js?ver=3.2.1"></script>
<script type="text/javascript" src="http://cdn.connect.mail.ru/js/share/2/share.js?ver=3.2.1"></script>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js?ver=3.2.1"></script>
<script type="text/javascript" src="http://www.google.com/buzz/api/button.js?ver=3.2.1"></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://domain.com/wordpress/xmlrpc.php?rsd">
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://domain.com/wordpress/wp-includes/wlwmanifest.xml">
<link rel="index" title="тайтл" href="http://domain.com">
<meta name="generator" content="WordPress 3.2.1">
<!-- All in One SEO Pack 1.6.13.4 by Michael Torbert of Semper Fi Web Designob_start_detected [-1,-1] -->
<meta name="description" content="description который нужен">
<meta name="keywords" content="keywords">
<link rel="canonical" href="http://domain.com/">
<!-- /all in one seo pack -->
вот что выводит после вставки которую ты дал
Array
(
[1] => Array
(
[wp_enqueue_scripts] => Array
(
[function] => wp_enqueue_scripts
[accepted_args] => 1
)
[noindex] => Array
(
[function] => noindex
[accepted_args] => 1
)
)
[2] => Array
(
[feed_links] => Array
(
[function] => feed_links
[accepted_args] => 1
)
)
[3] => Array
(
[feed_links_extra] => Array
(
[function] => feed_links_extra
[accepted_args] => 1
)
)
[8] => Array
(
[wp_print_styles] => Array
(
[function] => wp_print_styles
[accepted_args] => 1
)
)
[9] => Array
(
[wp_print_head_scripts] => Array
(
[function] => wp_print_head_scripts
[accepted_args] => 1
)
)
[10] => Array
(
[rsd_link] => Array
(
[function] => rsd_link
[accepted_args] => 1
)
[wlwmanifest_link] => Array
(
[function] => wlwmanifest_link
[accepted_args] => 1
)
[index_rel_link] => Array
(
[function] => index_rel_link
[accepted_args] => 1
)
[parent_post_rel_link] => Array
(
[function] => parent_post_rel_link
[accepted_args] => 0
)
[start_post_rel_link] => Array
(
[function] => start_post_rel_link
[accepted_args] => 0
)
[adjacent_posts_rel_link_wp_head] => Array
(
[function] => adjacent_posts_rel_link_wp_head
[accepted_args] => 0
)
[locale_stylesheet] => Array
(
[function] => locale_stylesheet
[accepted_args] => 1
)
[wp_generator] => Array
(
[function] => wp_generator
[accepted_args] => 1
)
[wp_shortlink_wp_head] => Array
(
[function] => wp_shortlink_wp_head
[accepted_args] => 0
)
[00000000096c0d36000000001ffae836wp_head] => Array
(
[function] => Array
(
[0] => All_in_One_SEO_Pack Object
(
[version] => 1.6.13.4
[maximum_description_length] => 160
[minimum_description_length] => 1
[ob_start_detected] => 1
[title_start] => -1
[title_end] => -1
[orig_title] =>
[log_file] => /var/www/domain.com/wordpress/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.log
[do_log] =>
[wp_version] => 3.2.1
[aioseop_op] =>
)
[1] => wp_head
)
[accepted_args] => 1
)
[tm_head] => Array
(
[function] => tm_head
[accepted_args] => 1
)
[whydowork_session] => Array
(
[function] => whydowork_session
[accepted_args] => 1
)
[_custom_background_cb] => Array
(
[function] => _custom_background_cb
[accepted_args] => 1
)
[wp_admin_bar_header] => Array
(
[function] => wp_admin_bar_header
[accepted_args] => 1
)
[_admin_bar_bump_cb] => Array
(
[function] => _admin_bar_bump_cb
[accepted_args] => 1
)
)
)