WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
1  
you can add shortcode of Nextgen Gallery in template using do_shortcode function of wordpress. Link :- codex.wordpress.org/Function_Reference/do_shortcode – Arvind Pal Feb 5 '13 at 7:08

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

share|improve this answer
    
Hi, ellen, are you sure the shortcode will work with the mentioned plugin? (Galleryview) – brasofilo Feb 5 '13 at 22:49
    
@brasofilo Yep, it works with TwentyTwelve link – ellenmva Feb 5 '13 at 23:09
    
Sorry, ellen, misread your Answer, it's stated there... – brasofilo Feb 5 '13 at 23:32
// 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
    }
}
share|improve this answer
1  
Please explain your code – Pieter Goosen Dec 16 '15 at 6:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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