我有一个WordPress网站没有正确阅读元标题的问题。我正在使用的所有在一个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总是让我困惑;所有我想做的是显示是输入到所有在一个搜索引擎优化的东西通过管理区域的标题。
您是否在header.php文件中调用了wp_head();
?
应该放在头文件结束前</head>
Block-Bots-htaccess.txt(复制此代码粘贴到所有htaccess中),您可以使用all in One SEO>启用文件编辑器>编辑htaccess