WordPress Feed Links (RSS)

This one is simple. If you’ve been building WordPress themes for a while, you’ll remember the days when you had to manually include code to output RSS feed links/references right in the header.php. The “new” approach is cleaner and relies on the wp_head() action hook to output the necessary code.

In the functions.php file, include the following:

// Adds RSS feed links to  for posts and comments.
add_theme_support( 'automatic-feed-links' );

That’s it, you’re done! Make sure that you have <?php wp_head(); ?> in the header.php, right before end of </head>.