you have to add the sets ID to the array $excluded_sets
you are welcome
<?php
// Make an array of the sets you want to exclude
$excluded_sets = Array ( '1', '2','3' );
require_once("./includes/phpflickr/phpFlickr.php");
$f = new phpFlickr("MY API KEY");
$photosets = $f->photosets_getList('MY FLICKR USER');
if(!empty($photosets)){
foreach ($photosets['photoset'] as $set) {
$setid = $set[id];
if ( in_array($setid, $excluded_sets) )
continue;
$photosSetInfo = $f->photosets_getInfo($setid);
$heading = $photosSetInfo['title'];
$photos = $f->photosets_getPhotos($setid, NULL, 2);
$html = "<li class='accordion_toggle_container'><a href='#' class='accordion_toggle'>".$heading."</a></li> \n <li class='accordion_content'> \n <ol class='photos'> \n";
// Get the friendly URL of the user's photos
$person = $f->people_findByUsername($user_id);
$photos_url = $f->urls_getUserPhotos($person['id']);
foreach ($photos['photo'] as $photo) {
$html .= "<li class='photo'>$photodate1<a href='".$f->buildPhotoURL($photo, "medium")."' class='lightview' rel='gallery[".$heading."]'><img alt='$photo[title]' src='".$f->buildPhotoURL($photo, "Square")."'/></a></li> \n";
}
echo $html;
echo "</ol>\n </li>\n";
}
}
?>