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>
.