Hi,
I use The new Twentyten ("2010") as parent theme for my own child theme. 2010 has a line of code in its functions.php
// Add default posts and comments RSS feed links to head
add_theme_support( 'automatic-feed-links' );
This calls a MASTER function of WP3 in the file general-tempalte.php
function feed_links( $args = array() ) {
if ( !current_theme_supports('automatic-feed-links') )
return;
$defaults = array(
/* translators: Separator between blog name and feed type in feed links */
'separator' => _x('»', 'feed link'),
/* translators: 1: blog title, 2: separator (raquo) */
'feedtitle' => __('%1$s %2$s Feed'),
/* translators: %s: blog title, 2: separator (raquo) */
'comstitle' => __('%1$s %2$s Comments Feed'),
);
$args = wp_parse_args( $args, $defaults );
echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr(sprintf( $args['feedtitle'], get_bloginfo('name'), $args['separator'] )) . '" href="' . get_feed_link() . "\" />\n";
echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr(sprintf( $args['comstitle'], get_bloginfo('name'), $args['separator'] )) . '" href="' . get_feed_link( 'comments_' . get_default_feed() ) . "\" />\n";
}
Both feed AND feed comments are added, so can't even use any hook/action to disabled the comments seperately.
Has anyone an idead of how to do that? I only want to offer the feeds, no comments as RSS.
THANKS