Jump to content

Gallery Image URLS not outputting


schmaka schmaka

Recommended Posts

I'm going a bit crazy here and hoping for some help.

 

I'm building a new page and want to output the url of a gallery image for a listing.

 

I'm using prx($listing) as my guide and I can see the array information for the listing I'm trying to grab the content from, but it's just not loading.

 

This is what I've used for the main media (working):

<?php echo $listing['MainMedia']['media_info']['image']['url'];?>

This is what I'm trying to use to grab one of the other 10+ images listed in media (not working):

<?php echo $listing['Media']['photo'][0]['media_info']['image']['url']; ?>

What am I doing wrong??? I can see all the other Media urls, but nothing gets displayed when running the echo command.

 

cheers

Andrew

Link to comment
×
×
  • Create New...