WordPress:Template Tags/comments rss link
Description
描述
Much like an RSS feed for your WordPress blog, this feature will display a link to the RSS feed for a given post's comments. By implementing the feature, your readers will be able to track the comment thread for a given post, perhaps encouraging them to stay connected to the conversation.
与你的WordPress博客的RSS feed相似,这个功能会为一个特定的文章的评论显示一个链接,连接到RSS feed。通过执行这个功能,你的读者能够追踪一篇特定文章的评论主题,可能会鼓励读者继续关注评论。
This tag must be within WordPress:The Loop, or the loop set up for comments.
必须在The Loop内部,或者为评论设置的loop中使用这个标签。
Usage
用法
%%% <?php comments_rss_link('text', 'file'); ?> %%%
%%% <?php comments_rss_link('text', 'file'); ?> %%%
Example
例子
Displays the link to the comment's RSS feed, using "comment feed" as the link text.
显示链接,连接到评论的RSS feed,将"评论 feed"用作链接文本。
<?php comments_rss_link('comment feed'); ?>
<?php comments_rss_link('comment feed'); ?>
Parameters
参数
- 'text'
- (string) Link text for the comments RSS link. Defaults to 'Comments RSS'.
- 'file'
- (string) The file the link points to. Defaults to 'wp-commentsrss2.php'.
- '文本'
- (string) 评论RSS链接的链接文本。默认'评论RSS'。
- '文件'
- (string) 链接所指向的文件。默认 'wp-commentsrss2.php'。
Related
相关的
comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comments_rss_link, comment_author_rss, comment_text_rss, comment_link_rss, permalink_comments_rss