I have been stumped by this simplest problem for hours now, turning to my friends at StackOverflow 🙂
Basically, I’m developing a custom WordPress theme. I’m using the same code that I have used many times before from EightFaces “FlickrRSS” plugin. Code looks like this:
<?php
get_flickrRSS(
array(
'set' => '72157625440574627',
'num_items' => 20,
'type' => 'set'
)
);
?>
The problem (which is very difficult to troubleshoot) is that I get absolutely ZERO return from the above code. So far I have tried different users and different Photo Sets, with no luck.
Frustrated by being unable to debug, I tried a different plugin the “Flickr Gallery” plugin which has high ratings also. Using the shortcodes for this gallery I again get ABSOLUTELY NOTHING.
I thought that perhaps my server somehow got reset to PHP 4, but that’s not it, it’s set for PHP 5.
Also, occurred to me that it might be WordPress 3.03. This site is the only one of those I’ve developed using WordPress 3.03.
I’m totally stumped. Anyone out there seen this problem or even have suggestions for debugging? I’ll try anything (as long as I haven’t tried it already).
The array is setup properly, but I think you have the wrong value for “set”.
I went through your user profile, found your site, and from there I found your Flickr account. When I navigate to http://www.flickr.com/photos/brianfeister/sets/72157625440574627/ I get a 404.
Either you have the wrong set number, or you have it set to private or something.
Edit:
It took a while, but I figured out the problem.
According to the README file that comes with the plugin, the ‘id’ field is only needed when ‘type’ is set to ‘user’ or ‘group’, but it turns out that it’s needed with ‘set’ as well.
If I run this:
I get nothing, but if I add the ‘id’ field (i.e. the ‘id’ for the user owning the set, not your ‘id’):
It works.