WordPress All in One SEO没有找到/显示标题

时间:2011-09-12 09:46:48

标签: php wordpress

我的WordPress网站没有正确读取元标题的问题。我正在使用All in One SEO插件。

在header.php文件中我有

<title>
    <?php //Print the <title> tag based on what is being viewed
    global $page, $paged;
    wp_title( '|', true, 'right' );
    // Add the blog name.
    bloginfo( 'name' );
    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( 'description', 'display' );
    if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description";
    // Add a page number if necessary:
    if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'continuum' ), max( $paged, $page ) );
    ?>
</title>

WordPress总是让我困惑;我想做的就是通过管理区域显示输入到All in One SEO中的标题。

2 个答案:

答案 0 :(得分:1)

您是否在header.php文件中调用了wp_head();

它应该在标题</head>

关闭之前放置

答案 1 :(得分:-1)

Block-Bots-htaccess.txt(将此代码粘贴复制到所有htaccess中),可以使用All in One SEO&gt;启用文件编辑器&gt;编辑htaccess