
June 3rd, 2012, 06:22 PM
|
|
Contributing User
|
|
Join Date: Apr 2007
Posts: 87
Time spent in forums: 1 Day 18 h 45 m 18 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by requinix
PHP Code:
$data = $rss->xpath ('channel/item/media:thumbnail');
That will get all the thumbnails. To get just the one from the current <item> change
PHP Code:
$img = $item->children("media", true)->thumbnail;
|
Hello, thanks for the reply. I'm a little confused. Do I need to replace
PHP Code:
$data = $rss->xpath ('channel/item/media:thumbnail');
with
PHP Code:
$img = $item->children("media", true)->thumbnail;
?
I've been messing around with this for a while now and only either manage to display all the images or none.
|