0

I have installed the NextGEN Gallery plugin and have all my images in albums. Can someone please support me in displaying the NextGEN gallery with the use of the Galleryview plugin?

Is there any easier way?

1

2 Answers 2

1

With both Nextgen Gallery and Nextgen-Galleryview active, the shortcode [nggallery id=1 template="galleryview"] should work with 1 being your gallery ID.

3
  • Hi, ellen, are you sure the shortcode will work with the mentioned plugin? (Galleryview)
    – brasofilo
    Commented Feb 5, 2013 at 22:49
  • @brasofilo Yep, it works with TwentyTwelve link
    – ellenmva
    Commented Feb 5, 2013 at 23:09
  • Sorry, ellen, misread your Answer, it's stated there...
    – brasofilo
    Commented Feb 5, 2013 at 23:32
0
// How to fetch NextGEN Gallery by custom query    
$sqlquery = "SELECT * FROM wp_ngg_pictures 
    WHERE gid=3 AND wp_ngg_pictures.gid='wp_ngg_pictures'.galleryid ";
$pageposts = $wpdb->get_results( $sqlquery );
if ( $pageposts ) {
    global $post;
    foreach ( $pageposts as $post ) { 
        ?><img src="<?php echo $post->path; ?>/<?php echo $post->filename; ?>" alt=""><?php
    }
}
1
  • 1
    Please explain your code Commented Dec 16, 2015 at 6:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.