WordPress.org

Support

Support » How-To and Troubleshooting » How to remove RSS, if he is empty?

How to remove RSS, if he is empty?

  • I have site with zero comments (i don’t have commenters at that moment, my site is new and not properly famous), so, how can i remove comments feed from my blog? I mean, may be there is a some if function, which show feed, only when it contains something? Like
    <?php if (bloginfo(‘rss2_url’)) ?><link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” /><?php endif; ?>

    I try to get this and crash blog )) I don’t programmer at all, may be there is a some error in my code?
    Or may be there is a some more soft way to do that?

  • The topic ‘How to remove RSS, if he is empty?’ is closed to new replies.
Skip to toolbar