post_comments_feed_link [ WordPress Function ]
post_comments_feed_link ( $link_text = '', $post_id = '', $feed = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: get_post_comments_feed_link, get_search_comments_feed_link, previous_comments_link, get_comments_link, is_comment_feed
Display the comment feed link for a post.
Prints out the comment feed link for a post. Link text is placed in the anchor. If no link text is specified, default text is used. If no post ID is specified, the current post is used.
Source
<?php
function post_comments_feed_link( $link_text = '', $post_id = '', $feed = '' ) {
$url = get_post_comments_feed_link($post_id, $feed);
if ( empty($link_text) )
$link_text = __('Comments Feed');
echo apply_filters( 'post_comments_feed_link_html', "<a href='$url'>$link_text</a>", $post_id, $feed );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/post comments feed link « WordPress Codex
Description. Prints out the comment feed link for a post. Link text is placed in the anchor. If no link text is specified, default text is used. If no post ID is specified, ...
codex.wordpress.org - WordPress › Support » PHP post_comments_feed_link Won't stay ...
ADD COMMENT RSS SUBSCRIBE BUTTON add_action('comment_form', ' comment_rss_subscribe_thing'); function comment_rss_subscribe_thing() { echo ...
wordpress.org - WordPress › Support » post_comments_feed_link not working?
The output from using this on a single post (single.php) <?php post_comments_feed_link('feed.', 'RSS 2.0'); ?> is this Comments on this post have this <a ...
wordpress.org - post_comments_feed_link Wordpress hook details -- Adam Brown ...
WordPress version history for post_comments_feed_link. This database has information for all major versions from WP 1.2.1 through 3.3.
adambrown.info