删除的WordPress评论频道链接我说的这行代码从头部
<link rel="alternate" type="application/rss+xml" title="example.com » Comments Feed" href="http://example.com/comments/feed/" />
我曾尝试在模板的functions.php的
remove_action('wp_head','feed_links_extra', 3);
手动添加删除操作挂钩,但它不”不要删除它。我不得不删除它。
最后,我已经编辑WP-包括/默认filters.php和注释掉
add_action('wp_head', 'feed_links_extra',3);
我的评论饲料环节仍然存在。我更喜欢functions.php修改或插件,而不是修改核心文件。
我试过禁用所有的插件并回到默认主题,但看起来像解决方案不是插件或主题相关。不幸的是没有用!我正在使用wordpress 3.2.1
挂钩将删除我的帖子和评论的饲料。我只想删除评论Feed。 – coolsaint
我觉得你运气不好。看codex(1591行)http://phpxref.ftwr.co.uk/wordpress/nav.html?_functions/index.html - 没有回调,没有参数允许你选择显示哪两个。 – mrtsherman
我偶然发现这个网页,并给了我和锻炼,它的工作http://wordpress.org/support/topic/remove-commentsfeed-link-and-link-to-wpme-from-twenty-ten?replies=5 – coolsaint