Function: wp_rss

wp_rss( string $url, integer $num_items )

Display all RSS items in a HTML ordered list.

Shortcut: wr

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

Parameters

Name Type(s) Default Value Description
$url string

URL of feed to display. Will not auto sense feed URL.

$num_items integer -1

Optional. Number of items to display, default is all.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.