• The Snippet how to turn off the WordPress feeds is easy to find. But if i use this it gets in Google Webmaster Tools a http 500 Error. Does somebody now how to fix this.

    I googled 1 hour but found nothing.

    Greetings Pablo

Viewing 2 replies - 1 through 2 (of 2 total)
  • What snippet?

    Thread Starter mnewmedia

    (@mnewmedia)

    function disable_our_feeds() {
    	wp_die( __('<strong>Error:</strong> No RSS Feed Available, Please visit our <a href="'. get_bloginfo('url') .'">homepage</a>.') );
    }
    
    add_action('do_feed', 'disable_our_feeds', 1);
    add_action('do_feed_rdf', 'disable_our_feeds', 1);
    add_action('do_feed_rss', 'disable_our_feeds', 1);
    add_action('do_feed_rss2', 'disable_our_feeds', 1);
    add_action('do_feed_atom', 'disable_our_feeds', 1);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘because WordPress feed turn off – http error 500’ is closed to new replies.