wp_rss()获得feed内容

目录

描述

译文

检索一个RSS feed并进行解析,并将其作为无秩序的链接列表显示。使用MagpieRSS and RSSCache 函数进行解析和自动缓存,并用Snoopy HTTP客户端 进行实际检索。

原文

Retrieves an RSS feed and parses it, then displays it as an unordered list of links. Uses the MagpieRSS and RSSCache functions for parsing and automatic caching and the Snoopy HTTP client for the actual retrieval.

Deprecated note: Switch to using fetch_feed instead.

wp_rss() 描述

用法

<?php
include_once(ABSPATH WPINC '/rss.php');
wp_rss($uri$num);
?>

wp_rss() 用法

参数

$uri

(URI) (必填) The URI of the RSS feed you want to retrieve. The resulting parsed feed is returned, with the more interesting and useful bits in the items array.

默认值: None

$num

(integer) (必填) The number of items to display.

默认值: None

wp_rss() 参数

相关