Forums

NextGEN Gallery
Custom Fields (3 posts)

  1. kiyamia
    Member
    Posted 1 year ago #

    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; ?>
  2. kiyamia
    Member
    Posted 1 year ago #

    It seems to work now without the quotes. Must have mistyped it somewhere.

    <?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; ?>
  3. kiyamia
    Member
    Posted 1 year ago #

    This does not work in IE as it does not allow for the web slices the widget uses. Does anyone know a work around for that problem? I tried changing webslices to true in widgets.php, but that does not seem to help even though it adds the same div's as the widget does.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic