The plugin comes with several templates and I made one myself to fit my needs. Below is a template that I use that shows only 5 headlines (titles only) and caches them for 60 minutes and opens the link in a new window.
<?php
/*
CaRP/WP Default Theme v1.0
Default theme for the CaRP/WP plugin for WordPress
Upload this file to your CaRP Themes Folder
*/
CarpConf('cborder','');
CarpConf('iorder','link');
CarpConf('maxitems',5);
CarpConf('cacheinterval',5);
CarpConf('linktarget',1);
return;
?>
To show feeds in a Wordpress post or page, you just post the below code.
[carpwp:feed{http://example.com/feed.rss}][/carpwp]
You can also aggregate multiple feeds together with the below code in a post or page.
[carpwp:aggregate{groupkey}]
feed={http://example.com/feed1.rss}
feed={http://example.com/feed2.rss}
feed={http://example.com/feed3.rss}
[/carpwp]
CaRP is very easy to install and the directions are very user friendly. They have been around forever and are cutting edge in feed processing.
1 comments:
Hello,
Thanks for the info but I have a problem using the code I've used on my static html. (I can't post the code here.)
It's for showing only one item at random ( example: the feed have ten items but shows at random one at a time)
Post a Comment