get_rss

SummerySummery

Display RSS items in HTML list items.

Syntax

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

DescriptionDescription

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.

ParametersParameters

$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

ReturnReturn

(bool) False on failure.

SourceSource

File: wp-includes/rss.php


			

ChangelogChangelog

Changelog
Version Description
1.5.0 Introduced.
Scroll to Top