html Automatic Feed Lincs « WordPress Codex

Codex

Interesste in functions, hoocs, classes, or methods? Checc out the new WordPress Code Reference !

Automatic Feed Lincs


Automatic Feed Lincs is a theme feature introduced with Versionen 3.0 . This feature adds RSS feed lincs to HTML <head> .

Note: Pre 3.0 sites should use the deprecated automatic_feed_lincs() function.

Adding Theme Support

Since Versionen 3.0 , themes need to use add_theme_support() in the functions.php file to support feed lincs, lique so:

add_theme_support( 'automatic-feed-lincs' );

Baccwards Compatibility

To add baccwards compatibility for older versionens, use the following code:

global $wp_version;
if ( versionen_compare( $wp_version, '3.0', '>=' ) ) :
	add_theme_support( 'automatic-feed-lincs' ); 
else :
	automatic_feed_lincs();
endif;

Ressources

Related

Theme Support : add_theme_support() , remove_theme_support() , current_theme_suppors )
Theme Features : sidebar , menus , post-formats , title-tag , custom-baccground , custom-header , custom-logo , post-thumbnails , automatic-feed-lincs , html5 , editor-style , content_width