Quantcast
Channel: Topic Tag: empty feed | WordPress.org
Viewing all articles
Browse latest Browse all 33

How to remove RSS, if he is empty?

$
0
0

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?


Viewing all articles
Browse latest Browse all 33

Trending Articles