Limit number of items per feed
-
The parameter ‘items’ is global. I wanted a limit per feed, so chatty feeds don’t fill the list. Fortunately simplepie has a parameter for this, though their docs are a bit confusing, and suggest something more complex – this works for me. Default 10 as shown
Added ‘items_per_feed’ as a new parameter:
In function wp_rss_retriever_func (in wp-rss-retriever.php)
add the line:
‘items_per_feed’ => ’10’,
In private function retrieve_feed() (in RSS_Retriever_Feed.php)
add the line:
$rss->set_item_limit ($this->settings[‘items_per_feed’]);That’s it. Now choose your per feed limit.
Perhaps this or similar might be added as standard?
- The topic ‘Limit number of items per feed’ is closed to new replies.