• I have a private blog that isn’t meant to be open to anyone. Is there a way to turn off RSS feeds? I’m using WP 1.5.2.

    thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The easiest way is to delete/rename the wp-feed.php. If you don’t want people who attempt to use it receive a 404 error, you can edit the wp-feed.php and comment everything out:


    <?php
    /*
    if (empty($doing_rss)) {
    $doing_rss = 1;
    require('wp-blog-header.php');
    }

    // Remove the pad, if present.
    $feed = preg_replace('/^_+/', '', $feed);

    if ($feed == '' || $feed == 'feed') {
    $feed = 'rss2';
    }

    if ( is_single() || ($withcomments == 1) ) {
    require('wp-commentsrss2.php');
    } else {
    switch ($feed) {
    case 'atom':
    require('wp-atom.php');
    break;
    case 'rdf':
    require('wp-rdf.php');
    break;
    case 'rss':
    require('wp-rss.php');
    break;
    case 'rss2':
    require('wp-rss2.php');
    break;
    }
    }
    */
    ?>

    I commented out the wp-feed.php page but I still see the rss icon in the bottom right corner of my page. How do I turn it off?

    You will have to modify your template to remove the Icon. Go into /wp-content/themes/<your theme name>/sidebar.php and remove it from there.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to turn off RSS feed?’ is closed to new replies.