New answers tagged feed
You also might want to remove another hook. I had a plugin that was using it for event comments. remove_action('wp_head', 'feed_links_extra', 3);
It's difficult to answer this, but here are some suggestions: Make sure your feeds are valid, e.g. here. In the case of is_wp_error( $rss ) giving true, you can check the corresponding error message with $rss->get_error_message(). Develop with WP_DEBUG activated. Don't use mysql_query(), it's deprecated since PHP 5.5. Use the $wpdb object to fetch data ...
From 4.4 on this seems to get easier with a brand-new filter: feed_links_show_posts_feed. So add_filter( 'feed_links_show_comments_feed', '__return_false' ); will do then.
@Shazzad’s approach seems to not work when current_theme_supports( 'automatic-feed-links' ), because up to 4.3 WordPress seems to be pretty ego about feed links. You would have to remove_action( 'wp_head', 'feed_links', 2 ) hard and add your own function printing only the link for post feeds. However, from 4.4 this seems to get easier with a brand-new ...
Top 50 recent answers are included