wordpress - 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
-->
如果我禁用页面缓存并缩小提要工作正常,但我希望启用它们并从提要中删除最后几行。
解决方案
我已经解决了删除所有页面上的 Total Cache 评论的问题。这是添加到 function.php 的代码
// Disable W3TC footer comment for all users
add_filter( 'w3tc_can_print_comment', '__return_false', 10, 1 );
推荐阅读
- r - R BootStrap 数据帧
- function - 函数不调用scrapy/webcrawler
- d3.js - deck.gl 中的图例
- android - android.database.sqlite.SQLiteException:靠近“?”:语法错误(代码 1):
- python - 使用python绘制数据框的最小值
- javascript - 有没有更好的方法来查找数组数组中的属性?
- matlab - inv(A)*B vs A\B - 为什么在 MatLab 中有这种奇怪的行为?
- php - php - 如果字符串只包含 '\n'
- c++ - C++ 字符串中变量的值
- arrays - 查找两个数组之间的所有对的优化