A customizable plugin to display photos from an RSS or Atom feed as a widget or shortcode.
RSSPhoto install simply requires creating a writable directory in wp-content/cache to store thumbnails, and installing/activating the plugin itself:
wp-content/cache and give it permissions of 755wp-content/plugins/rssphoto directoryTo use the widget:
To use the shortcode:
Add the following text to the page:
[rssphoto url="http://your.url.com/feed.xml"]
Include any of the following attributes (see descriptions of these settings below)
To integrate with a theme:
RSSPhotoTheme.functions.php to the end of the file functions.php in your theme directory.Call the function display_rssphoto() from your theme (e.g., sidebar.php). An example of the last two steps:
<?php
$settings[0]['title']='RSSPhoto';
$settings[0]['url']='http://photography.spencerkellis.net/rss.php';
$settings[0]['height']=150;
$settings[0]['width']=185;
$settings[0]['img_sel']='Random';
$settings[0]['num_img']=1;
$settings[0]['item_sel']='Random';
$settings[0]['num_item']=10;
$settings[0]['show_title']=1;
$settings[0]['show_img_title']=1;
$settings[0]['output']='Slideshow2';
$settings[0]['interval']=6000;
$settings[0]['before_title']='<h2>';
$settings[0]['after_title']='</h2>';
$settings[0]['before_html']='<li>';
$settings[0]['after_html']='</li>';
display_rssphoto($settings[0]);
?>
Here's a quick description of the settings:
Note that for the height and width properties you should only set one or the other to "variable", since RSSPhoto will use the other integer-valued dimension to fix the aspect ratio.
Requires: 2.8 or higher
Compatible up to: 2.8.6
Last Updated: 2009-11-30
Downloads: 5,045
Got something to say? Need help?