Limiting RSS Feed - display/get certain element?

Permalink
Hi all,

I'm trying to display the image(s) from my 500px RSS feed - but they're enclosed within the <description> (no separate tag).

I've only been able to display the image(s) via:
<?php echo $item->get_description(); ?>
Which obviously has all the other information as well.

The feed URL:
http://500px.com/mattcincotta91/rss...

What I'm really trying to achieve, is to get the img src for each item (using foreach ($posts...), somehow define it ($itemimgsrc) so I can use it how I want.
EG:
http://pcdn.500px.net/39976436/31e503738bf86df0dd760d477f2ffba42d82...

Is this even possible?
Can I define the <description> and then use a php preg_match_all on that definition?
Like:
http://stackoverflow.com/questions/9289094/how-to-exract-img-src-us...

Much appreciated - Matt

mattcincotta
 
mattcincotta replied on at Permalink Reply 1 Attachment
mattcincotta
I figured it would be easier to use the 500px API with JSON.

But now I'm having trouble with that!
I've been trying to use the code from (Working demo)
http://my-waz.com/using-500px-api-with-colorbox-and-php/...
with my consumer key and username

My feed URL ishttps://api.500px.com/v1/photos?feature=user&username=mattcincot...

I'm using the file attached as an RSS custom template for now, problem
Always displays 'Currently, No Service Available' though.

Any help is appreciated,

Cheers - Matt