在里面this page google help us 当有人从我们的博客文章中搜索到结果时,在谷歌搜索列表上启用我们的个人资料图像。
我的问题不是怎么做。。。喜欢this link that closed ... 但是关于这个有很多作者的博客,我在谷歌的文章中找不到关于多用户作者和分离的任何信息。(将他们分开,并将他们自己的帖子链接到谷歌结果?)
用第二种解决方案,我们如何做到这一点?
在里面this page google help us 当有人从我们的博客文章中搜索到结果时,在谷歌搜索列表上启用我们的个人资料图像。
我的问题不是怎么做。。。喜欢this link that closed ... 但是关于这个有很多作者的博客,我在谷歌的文章中找不到关于多用户作者和分离的任何信息。(将他们分开,并将他们自己的帖子链接到谷歌结果?)
用第二种解决方案,我们如何做到这一点?
作者信息分为两步:
将您网站上的页面链接到作者的Google+个人资料,最简单的方法是rel=“Author”<link />
中的标记<head>
第节
幸运的是,这真的很容易user_contactmethods
要在Google+用户表单的contact methods区域中插入一个新字段,请使用该字段中的值在head部分输出一个rel=“author”标记。因为它是按用户(作者)发布的,所以每个帖子都有自己的rel=“author”标签。
下面的示例仅限于单个页面(帖子、页面、自定义帖子类型),但您可以轻松地对其进行扩展。
<?php
add_filter(\'user_contactmethods\', \'wpse83193_user_contactmethods\');
/**
* Adds a Google+ field to the contact methods area in the user\'s profile.
*
* @param array $contact key => label pairs of contact methods
* @return array Same as the input: key => label pairs
*/
function wpse83193_user_contactmethods($contact)
{
$contact[\'wpse83193_google\'] = __(\'Google+\', \'wpse\');
return $contact;
}
add_action(\'wp_head\', \'wpse83193_output_contactmethods\');
/**
* Spit out the rel=author link tag in the <head> section.
*
* @uses is_singular
* @uses get_user_meta
* @return void
*/
function wpse83193_output_contactmethods()
{
if (!is_singular()) {
return;
}
if ($rel = get_user_meta(get_queried_object()->post_author, \'wpse83193_google\', true)) {
printf(\'<link rel="author" href="%s" />\', esc_url($rel));
}
}
以上as a plugin.还有很多SEO plugins 这正是我在上面展示的,已经建成并准备就绪。
我是wordpress的新手。我需要一个像这样的标题滑块插件请给我推荐插件。我使用“标题图像滑块”,但它不会显示在主图像的滑块下方。提前感谢