Disable all scripts and styles from NextGEN Gallery? [closed]

This takes care of NextGEN’s slideshow and CSS, as well as the Shutter script and CSS that it also enqueues by default. add_action(‘wp_print_scripts’, ‘wpse_82982_removeScripts’); add_action(‘wp_print_styles’, ‘wpse_82982_removeStyles’); function wpse_82982_removeScripts() { wp_dequeue_script(‘ngg-slideshow’); wp_dequeue_script(‘shutter’); } function wpse_82982_removeStyles() { wp_dequeue_style(‘NextGEN’); wp_dequeue_style(‘shutter’); } But: are you sure you want to do that? Maybe you can be a little selective, and … Read more

nextgen gallery: how to get picture url by gallery id

After analyzing nextgen core files I have found solution to my problem. I hope it will be useful for somebody. global $nggdb; $get_gall_id = get_post_meta($post_id, ‘galerijos_id’, true); $gall_ids = $nggdb->get_ids_from_gallery($get_gall_id); $images = $nggdb->get_gallery($get_gall_id); foreach ( $gall_ids as $gall_id ) { echo $images[$gall_id]->imageURL .'<br>’; }

Get a list of galleries from an album in NextGEN Gallery [closed]

Put this into your page template: <?php global $nggdb; $galleries = array(); $album = $nggdb->find_album(1); foreach( $album->gallery_ids as $galleryid ){ $gallery = $nggdb->find_gallery($galleryid); $galleries[$galleryid][‘title’] = $gallery->title; $galleries[$galleryid][‘url’] = get_bloginfo(‘url’) . ‘/portfolio/?album=all&gallery=’ . $galleryid; } foreach($galleries as $category){ echo ‘<a href=”‘ . $category[‘url’] . ‘”>’ . $category[‘title’] . ‘</a><br />’; } ?> You have to adapt … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)