Yoast WordPress SEO中的代码段删除META作者

发布于 2025-02-12 17:43:57 字数 253 浏览 2 评论 0原文

有没有办法删除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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

寄离 2025-02-19 17:43:57

有一个过滤器wpseo_meta_author以来,您可以使用版本进行更改或删除作者元标记的内容,因此要删除它:

add_filter( 'wpseo_meta_author', '__return_false' );

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:

add_filter( 'wpseo_meta_author', '__return_false' );
鸩远一方 2025-02-19 17:43:57

我认为这可能是您要寻找的答案: 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.

删除→记忆 2025-02-19 17:43:57

如果其他人提出了同样的问题,我最近发现(现在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...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文