首页 > 解决方案 > Mailchimp 上的错误验证 Wordpress Feed RSS

问题描述

Mailchimp 没有找到我的订阅源 RSS。这是使用验证工具的错误

此提要未验证。

line 407, column 19: XML parsing error: <unknown>:407:19: not well-formed (invalid token) [help]

    Page Caching using disk: enhanced (Page is feed) 

这是我的提要网址:https ://www.recipeselected.com/feed/ 我不明白为什么页面缓存会导致错误。

问题在于提要的最后几行:

<!-- Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/   
Page Caching using disk: enhanced (Page is feed)   
Minified using disk  
Served from: www.recipeselected.com @ 2019-06-17 00:04:12 by W3 Total Cache
-->

如果我禁用页面缓存并缩小提要工作正常,但我希望启用它们并从提要中删除最后几行。

标签: wordpressrssw3c-validation

解决方案


我已经解决了删除所有页面上的 Total Cache 评论的问题。这是添加到 function.php 的代码

// Disable W3TC footer comment for all users
add_filter( 'w3tc_can_print_comment', '__return_false', 10, 1 );

推荐阅读