All posts in my site have custom field with nextgen gallery ID. To display gallery I use this code:
$gallery_id = get_post_meta( $post->ID, 'galerijos_id', true); // Get gallery id from custom field data
if( $gallery_id ){
echo '<div class="post-gallery">';
echo nggShowGallery( $gallery_id ); // Display the gallery
echo '</div>';
How do I get pictures urls by gallery ID? I need url to pass to xml file. Thanks in advance.
After analyzing nextgen core files I have found solution to my problem. I hope it will be useful for somebody.
For me Paulius’s answer wasn’t working, here is the change that worked