CaRP: Caching RSS Parser - Documentation
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
Multiple Feeds on a Page ExampleThe following code will display two feeds on the same page with the same formatting. Notice how you only need to "require_once" once. Also notice that CaRP will display up to five items from each feed, not a total of five:
The following code will display two feeds on the same page. The first will have a bullet before each item. The second has all of its settings reset to the defaults by calling the function CarpConfReset(), and then the maximum number of items to display set to 5. In such a simple example, you would usually just add a line like "CarpConf('bi',"");" to reset the one configuration setting that had been overridden, but CarpConfReset() can be useful when you've overridden a number of options for one feed and then wish to display another feed with significantly different formatting.
Note that it is a good idea to set up background refreshing when accessing many newsfeeds from the same page: