Yoast WordPress SEO中的代码段删除META作者
有没有办法删除Yoast SEO在WordPress中插入的元数据“作者”代码?
<meta name="author" content="login.username" />
<!-- / Yoast SEO plugin. -->
我浏览了Yoast SEO插件中的所有选项,并尝试了一些PHP代码片段,但无济于事。
谁能帮忙?
谢谢!
保利
Is there a way to remove the metadata 'author' code inserted by Yoast SEO in WordPress?
<meta name="author" content="login.username" />
<!-- / Yoast SEO plugin. -->
I have looked through all the options in the Yoast SEO plugin and tried a few PHP Code Snippets but to no avail.
Can anyone help?
Thanks!
Paully
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有一个过滤器
wpseo_meta_author
以来,您可以使用版本进行更改或删除作者元标记的内容,因此要删除它:There is a filter
wpseo_meta_author
since version 19.3 you can use to change or remove the content of the author meta tag, so to remove it:我认为这可能是您要寻找的答案: https://yoast.com /help/disable-enable-author-archives/
如果您禁用作者档案,则应将作者从帖子中删除。
I think this may be the answer you are looking for: https://yoast.com/help/disable-enable-author-archives/
If you disable the author archive this should remove the author from posts.
如果其他人提出了同样的问题,我最近发现(现在2023年12月!),如果您停用Slack功能,有关作者的所有信息将被删除。在此处检查指令到激活slack slack (但是您按照他们关闭它们将其切换为关闭)呢不幸的是,该解决方案也取决于您的主题,它将起作用100%...
In case someone else comes up with the same problem with you, I found out recently (December 2023 now!) that if you deactivate Slack feature, all info about author is removed. Check here the instructions to activate Slack (but you follow them to toggle it off)! Unfortunately this solution depends on your theme also, it's not 100% that it will work...