I'm using NGG 1.8.3 over WP 3.2.1 Multisite.
I'm calling two galleries directly from the templates with this lines:
echo do_shortcode('[nggallery id=1]');
echo do_shortcode('[nggallery id=2]');
And I'm using a custom NGG template, located in a folder called /nggallery/ inside the theme folder. The customized gallery.php file looks like this:
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
<?php
$total_imagenes = sizeof($images);
for ( $i=1; $i<=$total_imagenes; $i++ ) {
if ( !$images[$i]->hidden ) {
echo '<a href="' . $images[$i]->imageURL . '" title="' . $images[$i]->description . '" rel="shadowbox[' . $gallery->anchor . ']" ';
if ($i==1) echo 'id="fotosStart" ';
echo '></a>';
}
if ( $images[$i]->hidden ) continue;
}
?>
<?php endif; ?>
Gallery ID 2 works perfectly fine; the weirdness is related to gallery ID 1. It generates the HTML for all the images, but it won't pull the image URL, title or description from $images.
Any ideas?
(of course, thanks in advance for any help you may provide)