&引用;“源不可用”Wordpress错误

&引用;“源不可用”Wordpress错误,wordpress,rss,wordpress-theming,Wordpress,Rss,Wordpress Theming,我有一个wordpress网站,使用“多主题插件”运行两个不同的主题。主主题是主网站的自定义主题,第二个主题是在www.themainwebsite.com/blog/上找到的博客 博客显示“帖子”,而主网站使用自定义文章名 博客看起来不错,正确地显示了index.php和single.php中的博客文章。唯一的问题是rss链接不起作用。它会出现在一个页面上说: 此站点不提供源。请访问该网站 下面是一幅当你点击链接时发生的事情的图片 我使用的代码是网站名,然后是“/feed/rss”。在过去的

我有一个wordpress网站,使用“多主题插件”运行两个不同的主题。主主题是主网站的自定义主题,第二个主题是在www.themainwebsite.com/blog/上找到的博客

博客显示“帖子”,而主网站使用自定义文章名

博客看起来不错,正确地显示了index.php和single.php中的博客文章。唯一的问题是rss链接不起作用。它会出现在一个页面上说:

此站点不提供源。请访问该网站

下面是一幅当你点击链接时发生的事情的图片

我使用的代码是网站名,然后是“/feed/rss”。在过去的几天里,它工作得很好,但现在它显示了我所表达的错误。我不明白为什么它会起作用,现在我得到了这个错误

任何帮助都将不胜感激,谢谢


poncho

您的站点中似乎禁用了rss源。 可能来自第三方插件或主题中的自定义代码

您附加的图像与本文中的代码类似:

主题中可能有一些代码,如:

function wpb_disable_feed() {
wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
}

add_action('do_feed', 'wpb_disable_feed', 1);
add_action('do_feed_rdf', 'wpb_disable_feed', 1);
add_action('do_feed_rss', 'wpb_disable_feed', 1);
add_action('do_feed_rss2', 'wpb_disable_feed', 1);
add_action('do_feed_atom', 'wpb_disable_feed', 1);
add_action('do_feed_rss2_comments', 'wpb_disable_feed', 1);
add_action('do_feed_atom_comments', 'wpb_disable_feed', 1);
函数wpb\u disable\u feed(){
wp_die(uuuu(‘没有饲料,请访问我们的!));
}
添加动作('do_feed'、'wpb_disable_feed',1);
添加动作('do_feed_rdf'、'wpb_disable_feed',1);
添加动作('do_feed_rss'、'wpb_disable_feed',1);
添加动作('do_feed_rss2','wpb_disable_feed',1);
添加操作('do_feed_atom','wpb_disable_feed',1);
添加动作('do_feed_rss2_comments','wpb_disable_feed',1);
添加操作('do_feed_atom_comments'、'wpb_disable_feed',1);
我希望有帮助