WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/post comments feed link

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, the current post is used.

Usage

 <?php
   post_comments_feed_link
$link_text 'link_text'$post_id 'post_id',
         
$feed 'feed_type' );
?> 

Parameters

$link_text
(string) (optional) Descriptive text.
Default: 'Comments Feed'
$post_id
(string) (optional) Post ID.
Default: Current post
$feed
(string) (optional) Type of feed. Possible values: atom, rdf, rss, rss2.
Default: rss2

Return Values

(string) 
Link to the comment feed for the current post.

Examples

Notes

Change Log

Since: 2.5.0

Source File

post_comments_feed_link() is located in wp-includes/link-template.php

Related

get_post_comments_feed_link

See also index of Function Reference and index of Template Tags.