WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

RSSPhoto

A customizable plugin to display photos from an RSS or Atom feed as a widget or shortcode.

How do I change the title, feed URL, or dimensions for a widget?

After your widget appears in the sidebar, go to the 'Widgets' section under the 'Appearance' menu in WordPress and open the settings for the widget (click the down arrow in the widget titlebar and the form will appear). Modify the fields as needed and click save.

Is there a way to prevent very small images from being displayed?

Yes, you can set a variable to require a minimum size (in pixels) of either width or height. In RSSPhoto.class.php, look for

var $min_size = 10;

And change the value as needed (default is 10 pixels).

My feed doesn't display any photos and there are no problems with the feed validation

RSS feeds can be implemented in numerous ways. RSSPhoto attempts to intelligently find the pictures in an RSS feed, but sometimes you need to point it in the right direction. In RSSPhoto.class.php, try changing the value of the variable $rss_type_src to one of the following values: 'Choose' (default), 'Description', 'Content', or 'Enclosures'.

My feed doesn't display any photos; W3C Feed Validation says it's valid but has a warning about wrong media type

If you get a warning from the W3C Feed Validation Service about your feed being served with the wrong media type, and RSSPhoto doesn't display your images, you may need to install the SimplePie Core plugin and force RSSPhoto to use it. The integrated SimplePie refuses to parse the feed because of the incorrect media type. Follow the FAQ point below to enable SimplePie Core. Then, open RSSPhoto.class.php and set the $force_feed variable to true:

var $force_feed = true;

How do I force RSSPhoto to use the SimplePie Core plugin so I have access to more feed-level options for troubleshooting?

To be clear, this option is available for fringe cases and is not expected to be commonly used (hence getting down and dirty with the code). An example is where the XML feed does not set its headers correctly and the SimplePie "force_feed" option must be set.

First, de-activate RSSPhoto. Next, install and activate the SimplePie Core plugin (not the full SimplePie plugin). Here's a link to the SimplePie Core plugin.

Now, edit RSSPhoto.class.php and change the value of the variable $parser from 'built-in' to 'simplepie-core':

var $parser = 'simplepie-core';

Re-activate RSSPhoto. That's it!

I'm getting an error about the SimplePie class not being found. What's wrong?

This should only happen if you have followed the directions above to force RSSPhoto to use the SimplePie Core plugin.

Here's what the error might look like:

Fatal error: Class .SimplePie. not found in /home/username/public_html/wp-content/plugins/rssphoto/rssphoto.php on line 40

If you receive this error, the most likely problem is that the SimplePie Core plugin is not installed or activated. Here's a link to the SimplePie Core plugin.

I'm still having problems. What should I do?

Please feel free to leave a comment at the plugin's website. I usually respond fairly quickly.

If you're interested in getting your hands dirty, there's a debug mode you can enable. In RSSPhoto.class.php, set the $debug variable to 1:

var $debug = 1;

By default, the debug output is hidden in HTML comments (<!-- and -->), so view the page source to find the debug messages. This could offer some useful information and could help in leaving detailed comments for troubleshooting.

Requires: 2.8 or higher
Compatible up to: 2.8.6
Last Updated: 2009-11-30
Downloads: 5,487

Ratings

3 stars
3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
50,2,1 100,1,1
0,1,0
0,3,0
0,1,0