首页 WordPress函数大全 get_rss()

get_rss()

2020-05-01 / 4147阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_rss( string $url, int $num_items = 5 )

Display RSS items in HTML list items.

描述

You have to specify which HTML list you want, either ordered or unordered before using the function. You also have to specify how many items you wish to display. You can’t display all of them like you can with wp_rss() function.

参数

$url

(string)
(Required)
URL of feed to display. Will not auto sense feed URL.

$num_items

(int)
(Optional)
Number of items to display, default is all.

Default value: 5

返回

(bool) False on failure.

大家谈论
    我的见解