wordpress 标签名称之间的 whitespcace 不适用于 feed

whitespcace between wordpress tag name is not working for feed

如果我正在使用

http://example.net/?tag=tag1_without_whitepsace,tag2_without_whitespace&feed=rss2

然后它工作正常并为我提供了所有标记有 tag1_without_whitepsace 和 tag2_without_whitespace 的 post。另一方面,如果我使用

http://example.net/?tag=tag1 whitepsace,tag2 with whitespace&feed=rss2

虽然我用 whitepsace 的 tag1 和 whitepsace 的 tag2 标记了许多 post,但我没有在我的提要中得到任何结果。我知道 url 中不允许使用空格,但我需要使用此类标签获得正确的提要结果。请任何人帮助我..

当您将白色space添加到控制面板中的标签、类别或post标题等时,系统会自动将其转换为-以供使用,即如果您输入 tag 1 它将被转换为 tag-1,并且 (with a space here)tag2(with another space here) 和 space 将被简单地忽略。

您永远不会在 URL 参数以及 Feed 中使用 spaces,请在此处阅读更多内容 http://codex.wordpress.org/WordPress_Feeds 以显示多个标签。