Using phpFlickr, how would one display the primary photo from each photoset?
- by Michael
Referring to this question: http://stackoverflow.com/questions/2561475/flickr-phpflickr-api
how would you display a primary photo from a photoset rather than all photos and photosets?
this is the code I have so far:
photosets_getList($user);
?
<?php $photoset_id = $ph_set['id'];
$photos = $f->photosets_getPhotos($photoset_id);
foreach ($photos['photoset']['photo'] as $photo): ?>
<?php if($parentID == $ph_set['parent']): ?>
<a rel="lightbox[album<?=$count;?>]" href="<?= $f->buildPhotoURL($photo, 'medium') ?>" title="<?= $photo['title'] ?>">
<?php endif;?>
<img src="<?= $f->buildPhotoURL($photo, 'square') ?>" alt="<?= $photo['title'] ?>" width="75" height="75" title="<?= $photo['title'] ?>" />
<h3><?=$ph_set['title']?></h3>
<?php if($parentID == $ph_set['parent']): ?>
</a>
</div>
<?php endif;?>