NextGEN Gallery
nggallery shortcode and add_image_size (1 post)

  1. Pancho Perez
    Posted 3 years ago #


    I have a doubt, there is a posibility to use aa new add_image_size in the gallery shortcode?

    In my functions.php

    add_image_size('background_slider', 1680, 1050, true);

    For the theme I use this code to show the gallery on my template
    <?php echo do_shortcode('[nggallery id=1 template=backgroundslide]');?>

    Until here everything works perfectly, but canĀ“t find a way yo set somethign like
    <?php echo do_shortcode('[nggallery id=1 template=backgroundslide w=100 h=200]');?>
    <?php echo do_shortcode('[nggallery id=1 template=backgroundslide size=background_slider]');?>

    What I try to do is set an image size for the gallery but not using the the resize image in the gallery options.

    Any help is welcome :)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic