get_tag_feed_link

函数
get_tag_feed_link ( $tag, $feed = '' )
参数
  • (int|WP_Term|object) $tag The ID or term object whose feed link will be retrieved.
    Required:
  • (string) $feed Optional. Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed().
    Required:
    Default: (empty)
返回值
  • (string) The feed permalink for the given tag.
定义位置
相关方法
get_feed_linkget_term_feed_linkget_tag_linkget_category_feed_linkget_author_feed_link
引入
2.3.0
弃用
-

get_tag_feed_link: 此函数检索特定标签的RSS提要的URL。它接受一个参数:要检索的标签的ID。它以字符串形式返回feed URL。

检索一个标签feed的固定链接。

function get_tag_feed_link( $tag, $feed = '' ) {
	return get_term_feed_link( $tag, 'post_tag', $feed );
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 19:32:59

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: