I'm using custom fields to get the values for the number of images and list of galleries to be displayed. The code seems to be functioning, but won't display anything in it. I've tried this with and without quotes, but it doesn't display properly. Would appreciate any comments you have for correcting this.
<?php if ( get_post_meta($post->ID, 'numberofImages', true)) :
$imagecount= get_post_meta($post->ID, 'numberofImages', true);
$gallerylist= get_post_meta($post->ID, 'listofGalleries', true);
nggDisplayRecentImages($imagecount,'300','200','allow','$gallerylist','thumbnail'); ?>
<?php endif; ?>
I used the similar code below in conjunction with the monoslideshow plugin for nextgen and it works perfectly.
<?php if ( get_post_meta($post->ID, 'galleryID', true) ) :
$gID= get_post_meta($post->ID, 'galleryID', true);
$mono='[monoslideshow id='.$gID.' w=720 h=600 preset=aracegallery]';?>
<?php echo do_shortcode($mono); ?>
<?php endif; ?>