WordPress获取搜索Feed链接函数:get_search_feed_link

WordPress函数get_search_feed_link用于获取搜索结果的Feed链接。 get_search_feed_link( string $search_query = '', string $feed = '' ) 函数参数$search_query 字符串 关键词 $feed 字符串 Feed的类型,可用值:rss2、atom,默认值为get_default_feed()函数返回的值,即rss2 …

WordPress输出当前文章Rss enclosure函数:rss_enclosure

WordPress函数用于输出当前文章的Rss enclosure,该函数使用全局变量$post来输出对应信息,如果文章设置为加密,则不输出任何内容。 rss_enclosure() 函数返回值该函数返回一个XML标签: …

WordPress获取分类Rss函数:get_the_category_rss

WordPress函数get_the_category_rss用于获取当前文章所属分类、标签的Rss。 get_the_category_rss( string $type = null ) 函数参数$type 字符串 Feed的类型,可用值:rss2、atom,默认值为get_default_feed()函数返回的值,即rss2 …

WordPress获取分类Feed链接函数:get_category_feed_link

WordPress函数get_category_feed_link用于获取指定分类的Feed链接。 get_category_feed_link( int|WP_Term|object $cat, string $feed = '' ) 函数参数$cat 整数或对象 分类ID或WP_Term对象 $feed 字符串 Feed的类型,可用值:rss2、atom,默认值为get_default_feed()函数返回的值,即rss2 …

WordPress获取作者Feed链接函数:get_author_feed_link

WordPress函数get_author_feed_link返回指定作者的Feed链接。 get_author_feed_link( int $author_id, string $feed = '' ) 函数参数$author_id 整数 作者的ID $feed 字符串 Feed的类型,可用值:rss2、atom,默认值为get_default_feed()函数返回的值,即rss2 …

WordPress获取文章评论Feed链接函数:get_post_comments_feed_link

WordPress函数get_post_comments_feed_link用于获取指定文章评论的Feed链接地址,与post_comments_feed_link()函数不同,get_post_comments_feed_link()函数只返回链接地址,而post_comments_feed_link()函数首先使用get_post_comments_feed_link()获取到链接,再输出超链接标签。 get_post_comments_feed_link( int $post_id, string $feed = '' ) 函数参数$post_id 整数 文章ID,如果不指定,则输出当前文章的评论链接。 …

WordPress输出文章评论Feed超链接函数:post_comments_feed_link

WordPress函数post_comments_feed_link输出指定文章评论的Feed超链接,如果不指定文章ID,则获取当前文章的评论Feed链接。 post_comments_feed_link( string $link_text = '', int $post_id = '', string $feed = '' ) 函数参数$link_text …

WordPress在Feed中获取评论作者函数:get_comment_author_rss

WordPress函数get_comment_author_rss用于在Feed中获取评论的作者,该函数没有参数。 get_comment_author_rss() 函数使用示例<title>评论者:<?php echo get_comment_author_rss() ?></title> 扩展阅读get_comment_author_rss()函数位于:wp-includes/feed.php …

WordPress获取评论链接函数:get_comment_link

WordPress函数get_comment_link用于获取评论的链接。 get_comment_link( WP_Comment|int|null $comment = null, array $args = array() ) 函数参数$comment 整数或对象 评论的ID,或WP_Comment对象 $args 数组,可用值如下: type:类型,有comment、trackback、pingback、pings(trackbacks和pingbacks)、all,默认值为all; page:当前评论页面,用于评论分页显示; per_page:每页显示的评论数量,默认为comments_per_page的值,即后台讨论设置中分页显示评论设置的值; max_depth:评论嵌套层数,默认为thread_comments_depth的值,即后台讨论设置中启用评论嵌套,最多嵌套层数; cpage:用于评论comment-page或cpage的值,一但设置,将覆盖$page和$per_page的设置。 函数使用示例<a href="<?php echo get_comment_link(); ?>">查看评论</a> 扩展阅读get_comment_link()函数位于:wp-includes/comment-template.php …

WordPress输出评论链接函数:comment_link

WordPress函数comment_link用于输出评论的链接。 comment_link( int|WP_Comment $comment = null ) 函数参数$comment 整数或对象 评论的ID,或WP_Comment对象 函数使用示例<a href="<?php comment_link(); ?>">查看评论</a> 扩展阅读comment_link()函数位于:wp-includes/feed.php …