Codex tools: Log in
Automatic Feed Links is a theme feature introduced with Version 3.0. This feature adds RSS feed links to HTML <head>.
Note: Pre 3.0 sites should used the deprecated automatic_feed_links() function.
Contents |
Since Version 3.0, themes need to use add_theme_support() in the functions.php file to support feed links, like so:
add_theme_support( 'automatic-feed-links' );
To add backwards compatibility for older versions, use the following code:
global $wp_version; if ( version_compare( $wp_version, '3.0', '>=' ) ) : add_theme_support( 'automatic-feed-links' ); else : automatic_feed_links(); endif;
Theme Support:
add_theme_support(),
remove_theme_support(),
current_theme_supports()
Features:
sidebar,
menus,
post-formats,
post-thumbnails,
custom-background,
custom-header,
automatic-feed-links,
content_width,
editor-style