I have also tried
do_shortcode( "[ngg_images album_ids=1 display_type=photocrati-nextgen_basic_extended_album]" );
which does not work, either. No output. Tried “photocrati-nextgen_pro_list_album”, which outputs “We cannot display this gallery”.
How can I list the other galleries in an album while viewing a gallery? (Note all those suggestions to the same question from 3+ years ago no longer work.)
@swinggraphics – Please contact our support team directly with any questions or concerns for NextGEN Pro displays via your member’s area at http://nextgen-gallery.com/
Thanks!
– Cais.
Got it, though it’s kind of messy. This works in my particular case:
preg_match( '#^(.+/albums)/(.+?)/#', $_SERVER['REQUEST_URI'], $url );
$album = nggdb::find_album( $url[2] );
echo '<ul class="ngg-albumoverview">';
foreach( $album->gallery_ids as $galleryid ){
$sibling_gallery = nggdb::find_gallery( $galleryid );
echo "<li class=\"ngg-albumtitle\"><a href=\"$url[1]/$album->slug/$sibling_gallery->slug\">$sibling_gallery->title</a></li>";
}
echo '</ul>';
If anyone finds a proper replacement for nggCreateAlbum() and posts it here, I will mark the topic resolved.
Could you try doing this:
$albumID = 1; // insert your own logic
$renderer = C_Displayed_Gallery_Renderer::get_instance();
$gallery_html = $renderer->display_images(array(
'album_ids' => array($albumID),
'display_type' => 'photocrati-nextgen_basic_extended_album'
));
echo $gallery_html;
That should create an album display; just use the same parameters you may pass to the shortcode.
That’s quite unusual.
Do the gallery displays work, or is it only albums that are coming out blank?
If you visit Gallery Settings do the album accordions appear, and do they have settings? Alternately do the albums appear in our “Insert Gallery Window” (green icon above the page/post editor) list?
If you visit Gallery Settings do the album accordions appear, and do they have settings?
Yes, …Compact Album and …Extended Album are both there, with Display… and Template set.
Alternately do the albums appear in our “Insert Gallery Window” (green icon above the page/post editor) list?
The albums do show up in the editor interface.
Trying to find a workaround to print album info on gallery page.
Are you attempting to do this on an admin page (would is_admin() be true)? If so that may be the issue; for 2.0.68+ we’ve made some performance adjustments that limit gallery rendering to the frontend, but that may be a decision to reconsider.
I have to confess I’m confused. It’s possible that setting define('NGG_DISABLE_FILTER_THE_CONTENT', TRUE); in your wp-config.php may fix the problem, but it’s only a chance.
If you are willing to share access to your site I’d be glad to some debugging, you can fill out a bug report on the nextgen-gallery.com site and I can see why albums in particular aren’t displaying.
Sorry I couldn’t help more.
@swinggraphics – We have just released a new public beta that may have some modifications that will help you get back to where you were (we specifically re-introduced some NextGEN Legacy methods that we no longer use ourselves).
You can find the beta here: http://nextgen-gallery.com/nextgen-gallery-latest-beta/
– Cais.
PS: “Benjamin” is one of our developers if that provides any additional comfort level.