Viewing 2 replies - 1 through 2 (of 2 total)
  • subscribe

    So I made a work around solution that uses shortcodes that might help.

    Basically use the ACF NextGen Gallery Field to find the gallery ID then pass that into a shortcode that has the Plus display styles you want and then echo out the the short code using the do_shortcode() function.

    The parameter options for display type are:
    display_type=”photocrati-nextgen_basic_slideshow”
    display_type=”photocrati-nextgen_basic_thumbnails”
    display_type=”photocrati-nextgen_basic_imagebrowser”
    display_type=”photocrati-nextgen_basic_singlepic”
    display_type=”photocrati-nextgen_basic_extended_album”
    display_type=”photocrati-nextgen_basic_compact_album”
    display_type=”photocrati-nextgen_pro_slideshow”
    display_type=”photocrati-nextgen_pro_thumbnail_grid”
    display_type=”photocrati-nextgen_pro_horizontal_filmstrip”
    display_type=”photocrati-nextgen_pro_film”
    display_type=”photocrati-nextgen_pro_blog_gallery”
    display_type=”photocrati-nextgen_pro_list_album”
    display_type=”photocrati-nextgen_pro_grid_album”
    display_type=”photocrati-nextgen_pro_masonry”

    Example:

    <?php
    
        foreach ( get_field ( 'gallery' ) as $nextgen_gallery_id ) :
    $galleryID = $nextgen_gallery_id['ngg_id'];
                 $galleryShortcode = '[ngg_images gallery_ids="' . $galleryID . '" display_type="photocrati-nextgen_pro_masonry" override_thumbnail_settings="1"
     size="390" images_per_page="20" spacing="10"]';
                 echo do_shortcode($galleryShortcode);
    
        endforeach;
    ?>

    note “gallery” will need to be the name you gave the field in ACF

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘NextGEN Plus support’ is closed to new replies.