Summery Summery
Get the number of items in the feed
Syntax Syntax
Description Description
This is well-suited for for() loops with get_item()
Parameters Parameters
- $max
-
(Required) Maximum value to return. 0 for no limit
Return Return
(int) Number of items in the feed
Source Source
File: wp-includes/class-simplepie.php
elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lon')) { return (float) $return[0]['data']; } elseif (($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match)) { return (float) $match[2]; } return null; } /**