How to remove RSS, if he is empty? (1 post)

  1. ogonkov
    Posted 7 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic