Slideshow Gallery Plugin – Exclude Fix
Excluding attachments with this plugin is a great new feature with 1.0.5. Sadly it doesn’t work right out of the bag and you’ll have to make some easy adjustments to the main slideshow_gallery.php
Look for this:
$a = 0;
foreach ($attachments as $id => $attachment) {
$a++;
if (in_array($a, $exclude)) {
unset($attachments[$id]);
}
}
Exchange with this:
foreach ($attachments as $id => $attachment) {
if (in_array($id, $exclude)) {
unset($attachments[$id]);
}
}
