wordpress标签页面_如何在WordPress中添加Facebook作者标签

wordpress标签页面

Have you noticed that Facebook is now displaying author information on links shared on Facebook? Recently one of our users saw our Facebook status and asked us how they can add the Facebook author tag on their site. Considering the massive user base of Facebook, this is crucial to any site’s social media strategy. In this article, we will show you how add the Facebook author meta tag in WordPress.

您是否注意到Facebook现在在与Facebook共享的链接上显示作者信息? 最近,我们的一位用户看到了我们的Facebook状态,并询问我们如何在其网站上添加Facebook作者标签。 考虑到Facebook的庞大用户群,这对于任何站点的社交媒体策略都是至关重要的。 在本文中,我们将向您展示如何在WordPress中添加Facebook author meta标签。

Facebook Author Tag Demo
Facebook Author Tag如何工作? (How Does Facebook Author Tag Work?)

Once you add the Facebook author tag on your site, it will display your name with a link back to your profile any time your article is shared.

在您的网站上添加Facebook author标记后,只要您共享文章,它将显示您的名字以及指向您个人资料的链接。

This is great for both single author blogs and multi-author blogs because it bring more exposure to your personal brand.

这对于单作者博客和多作者博客都非常有用,因为它可以增加您个人品牌的曝光率。

There are several ways to add the Facebook Author tag on your site. We will show you both the plugin method as well as the code method to add Facebook Author meta tag on your WordPress site.

有几种方法可以在您的网站上添加Facebook Author标签。 我们将向您展示在您的WordPress网站上添加Facebook Author元标记的插件方法和代码方法。

影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

使用Yost WordPress SEO插件添加Facebook作者标签 (Add Facebook Author Tag Using Yost WordPress SEO Plugin)

If you are using Yoast WordPress SEO plugin, then you are in luck because it has Facebook open graph meta data support.

如果您使用的是Yoast WordPress SEO插件,那么您很幸运,因为它具有Facebook开放图元数据支持

You just need to visit SEO » Social page in your WordPress admin and make sure that the box next to ‘Add Open Graph meta data’ option is checked.

您只需要在WordPress管理员中访问SEO»社交页面,并确保已选中“添加打开图元数据”选项旁边的框。

Enable Facebook open graph meta data in WordPress

The next step is to add your Facebook ID in your WordPress account. Simply visit Users » Your Profile page and enter your Facebook profile URL and click on the save changes button to store your settings.

下一步是在WordPress帐户中添加您的Facebook ID。 只需访问用户»您的个人资料页面,然后输入您的Facebook个人资料网址,然后点击保存更改按钮即可存储您的设置。

Add Facebook profile URL in WordPress

That’s all, WordPress SEO will now automatically insert Facebook author tag or published by tag when you publish an article. WordPress SEO also allows you to easily add a page title and description for Facebook, and you can even explicitly set Facebook thumbnail for your posts.

就是这样,当您发布文章时,WordPress SEO现在将自动插入Facebook作者标签或按标签发布。 WordPress SEO还允许您轻松为Facebook添加页面标题和描述,甚至可以为您的帖子明确设置Facebook缩略图

使用代码在WordPress中添加Facebook作者标签 (Add Facebook Author Tag in WordPress using Code)

Since we already use Yoast SEO plugin on our site, it made sense for us to use the above method. However if you want to add Facebook author meta tag on your site without a plugin, then simply add the following code in your site’s <head> section.

由于我们已经在我们的网站上使用Yoast SEO插件,因此使用上述方法对我们很有意义。 但是,如果您想在网站上添加Facebook author meta标签而不使用插件,则只需在网站的<head>部分中添加以下代码。


<meta property="article:publisher" content="http://facebook.com/yourpagelink" />

<meta property="article:author" content="http://facebook.com/yourprofilelink" />

Make sure to replace the links above with your site’s Facebook page link and your personal profile link.

确保将上面的链接替换为您网站的Facebook页面链接和您的个人资料链接。

If you don’t want to edit your theme files, then you can use our Insert Headers and Footers plugin to add this code in your site.

如果您不想编辑主题文件,则可以使用我们的“ 插入页眉和页脚”插件在您的网站中添加此代码。

We hope this article helped you add Facebook author tag in your WordPress site. You may also want to see our beginner’s guide on how to add Twitter cards in WordPress.

我们希望本文能帮助您在WordPress网站中添加Facebook作者标签。 您可能还想查看有关如何在WordPress中添加Twitter卡的初学者指南。

Having an issue with the incorrect image showing in Facebook? Here’s how to fix Facebook incorrect thumbnail issue in WordPress.

对Facebook中显示的图片不正确有疑问吗? 这是修复WordPress中Facebook错误缩略图的方法

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-add-facebook-author-tag-in-wordpress/

wordpress标签页面

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值