views:

60

answers:

1

I have the feed burner code to put into wordpress but do not know where to put it into wordpress.

+1  A: 

Head yourself to the following file: wp-includes/general-template.php

Then in that, jump down to the following function (around line 1454):

function feed_links( $args ) {
  //--guts of the function
}

You'll note two (2) lines just before the close of the fuction like so:

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";

Edit the first line with your Feedburner URL, like so (broken across lines for clarity and to save you from scrolling like in the above code block):

echo '<link rel="alternate" type="' . feed_content_type() . '" 
         title="' . esc_attr(sprintf( $args['feedtitle'], get_bloginfo('name'), 
         $args['separator'] )) . '" 
         href="http://feeds.feedburner.com/example"' . " />\n";
random