feed_links [ WordPress Function ]
feed_links ( $args = array() )
| Parameters: |
|
| Defined at: |
|
Display the links to the general feeds.
Source
<?php
function feed_links( $args = array() ) {
if ( !current_theme_supports('automatic-feed-links') )
return;
$defaults = array(
/* translators: Separator between blog name and feed type in feed links */
'separator' => _x('»', 'feed link'),
/* translators: 1: blog title, 2: separator (raquo) */
'feedtitle' => __('%1$s %2$s Feed'),
/* translators: %s: blog title, 2: separator (raquo) */
'comstitle' => __('%1$s %2$s Comments Feed'),
);
$args = wp_parse_args( $args, $defaults );
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";
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- WordPress › Support » Remove feed from wp_head
<?php remove_action( 'wp_head', 'feed_links_extra'); // Display the links to the extra feeds such as category feeds remove_action( 'wp_head', 'feed_links'); ...
wordpress.org - Function Reference/add theme support « WordPress Codex
4.1 Post Formats; 4.2 Post Thumbnails; 4.3 Custom Background; 4.4 Custom Header; 4.5 Feed Links. 5 Multisite; 6 Notes; 7 Changelog; 8 Source File; 9 Related ...
codex.wordpress.org - feed_links | A HitchHackers guide through WordPress
Feb 11, 2011 ... function feed_links( $args = array() ) { if ( !current_theme_supports('automatic- feed-links') ) return; $defaults = array( /* translators: Separator ...
hitchhackerguide.com - PHPXRef 0.7 : WordPress : Function Reference: feed_links()
Function and Method Cross Reference. feed_links(). Defined at: /wp-includes/ general-template.php -> line 1589. No references found.
phpxref.ftwr.co.uk