常用函数-get_category_feed_link()

0条评论

常用函数-get_category_feed_link()

说明

该函数自2.5版启用,返回指定类别中所有文章的feed链接。可请求特别feed,但为空时,函数返回'rss2'feed链接。该函数取代了已经弃用的get_category_rss_link函数。

用法

<?php get_category_feed_link('cat_id', 'feed'); ?> 

示例

缺省用法

返回类别2文章的rss2 feed链接。

 <?php get_category_feed_link('2', ''); ?>

参数

cat_id

(字符串)将被返回的feed链接的类别编号

feed

(字符串)feed的类别,如果为空,默认使用'rss2'feed

弃用函数

get_category_rss_link

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.