# 通过 WordPress 嵌入发布的旧主题缺少 x-robots: noindex 和 canonical 标签

**URL:** <https://meta.discourse.org/t/old-topics-published-via-wordpress-embed-are-missing-x-robots-noindex-and-canonical-tags/403109>\
**Category:** WordPress\
**Tags:** wordpress\
**Created:** [2026年五月15日 21:44 UTC](https://meta.discourse.org/t/old-topics-published-via-wordpress-embed-are-missing-x-robots-noindex-and-canonical-tags/403109 "2026-05-15T21:44:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Thiago\_Mobilon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thiago_mobilon/32/177756_2.png) [@Thiago\_Mobilon](https://meta.discourse.org/u/Thiago_Mobilon)\
**Post date:** [2026年五月15日 21:44 UTC](https://meta.discourse.org/t/old-topics-published-via-wordpress-embed-are-missing-x-robots-noindex-and-canonical-tags/403109/1 "2026-05-15T21:44:55Z")

</div>

大家好，

我注意到从 WordPress 自动发布到 Discourse（用作评论区）的旧帖子存在一个奇怪的问题。

通常情况下，以这种方式发布帖子时，Discourse 会正确地在 HTTP 头中添加 `X-Robots-Tag: noindex`，并将 `canonical` URL 设置回指向 WordPress 博客文章。

然而，我发现 **较旧的帖子正在丢失这些标签** 。`noindex` 头消失了，`canonical` 标签也不再存在。以下是出现此问题的一些帖子示例：

- [https://tecnoblog.net/comunidade/t/como-colocar-musica-no-status-do-whatsapp/73608](https://tecnoblog.net/comunidade/t/como-colocar-musica-no-status-do-whatsapp/73608)
- [https://tecnoblog.net/comunidade/t/como-compartilhar-a-internet-com-outro-celular-ou-pc/79015](https://tecnoblog.net/comunidade/t/como-compartilhar-a-internet-com-outro-celular-ou-pc/79015)
- [https://tecnoblog.net/comunidade/t/como-usar-a-netflix-em-outro-pais-viagem-ou-mudanca/74248](https://tecnoblog.net/comunidade/t/como-usar-a-netflix-em-outro-pais-viagem-ou-mudanca/74248)
- [https://tecnoblog.net/comunidade/t/como-usar-o-google-docs-7-super-dicas-e-truques-rapidos/76598](https://tecnoblog.net/comunidade/t/como-usar-o-google-docs-7-super-dicas-e-truques-rapidos/76598)
- [https://tecnoblog.net/comunidade/t/como-atender-chamadas-do-seu-celular-android-no-windows-10/76615](https://tecnoblog.net/comunidade/t/como-atender-chamadas-do-seu-celular-android-no-windows-10/76615)

有人知道如何解决这个问题吗？

请注意，我无法确切知道目前有多少帖子受到了影响，但看起来数量相当多。

如果能在分类（或标签？）设置中有一个复选框，启用后自动为在该分类下发布的所有帖子添加 `noindex`，那就太好了。类似于：

`[] 在搜索结果中隐藏此分类下的帖子`。

---

_[View the full topic](https://meta.discourse.org/t/old-topics-published-via-wordpress-embed-are-missing-x-robots-noindex-and-canonical-tags/403109)._
