WordPress:Template Tags/comments rss link

来自站长百科
跳转至: 导航、​ 搜索

描述[ ]

与你的WordPress博客的RSS feed相似,这个功能会为一个特定的文章的评论显示一个链接,连接到RSS feed。通过执行这个功能,你的读者能够追踪一篇特定文章的评论主题,可能会鼓励读者继续关注评论。

必须在The Loop内部,或者为评论设置的loop中使用这个标签。

用法[ ]

%%% <?php comments_rss_link('text', 'file'); ?> %%%

例子[ ]

显示链接,连接到评论的RSS feed,将"评论 feed"用作链接文本。

<?php comments_rss_link('comment feed'); ?>

参数[ ]

'text'
(string)评论RSS链接的链接文本。 默认 'Comments RSS'.
'file'
(string) 链接所指向的文件。 默认 'wp-commentsrss2.php'

相关的[ ]

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

模板:PHP 函数 标签 页底文字