Ok, this has worked for me.
<?php
// get the track list
global $nggdb;
$gallery = $nggdb->get_gallery ($galleryID, 'sortorder', 'ASC', true, 0, 0);
?>
<div id="tracklist">
<?php foreach($gallery as $image) { ?>
<div class="single_image" id="image-<?php echo $image->pid; ?>">
<a href="https://wordpress.stackexchange.com/questions/75475/<?php the_permalink() ?>&pid=<?php echo $image->pid;?>" title="<?php echo $image->title; ?>">
<?php echo $image->alttext; ?>
</a>
</div>
<?php } ?>
</div>
Related Posts:
- problem with nextgen plugin
- NextGen Gallery – automatically create gallery sub page?
- Get a list of galleries from an album in NextGEN Gallery [closed]
- How to customise the output of the WP image gallery shortcode from a plugin?
- Validation error: Extending Gutenberg gallery block
- Using nextGen Gallery.. how can I call a list of all Gallery Names?
- Two embedded gallery in one post
- Calling function from within functions.php returns unwanted value
- How to get all attachment image from post ?? WordPress
- Storing image gallery plugin data
- Changing image size to full size in Gutenberg’s block gallery
- How do I create a full-bleed background image on text mouseover? [closed]
- How to add a random image to a post from gallery and only show one?
- Plugin for gallery with thumbnails?
- How do I turn a custom post type into a plugin?
- Gallery plugin forces itself above text
- Disable all scripts and styles from NextGEN Gallery? [closed]
- Image gallery plugin [closed]
- Debugs/errors in oqey gallery
- Howto accurately position images with maximum flexibility?
- Is any gallery plugin available to generate galleries from existing uploaded images? [closed]
- Theme is Causing Ajax Conflicts for a plugin I cant identify it
- Customizing NEXTGEN Gallery To link images to pages
- Removing an action from wp_footer called in a class that’s inside a bigger class
- Can we have an ‘Update metadata’ button in Image Gallery for all image instances?
- Image Manager Plugin [closed]
- jQuery | JJ Carousel Plugin – Can’t set speed [closed]
- How to over-ride a file in a plugin? [closed]
- How do I create a Client Logos section in admin menu?
- Basic gallery plugin suggestion [closed]
- what is name of this plugin used for photo gallery page [closed]
- Fullscreen gallery plugin [closed]
- Best portfolio/gallery/carousel slideshow plugin with thickbox? [closed]
- How to have a gallery in which each image’s caption is a whole “post”?
- How to get images using taxonomy ( WP Media Folder)
- Image Galleries for website migrated from .com to .org
- Default WordPress gallery or very lightweight alternative to it?
- Advanced custom fields and Slideshow gallery desn’t work together? [closed]
- Create Short code dynamically
- Portfolio Slideshow Sliders Behaving Oddly When in jQuery Ui Tabs
- Adding Gallery to Footer of Homepage
- Can I remove an image from the Gallery without deleting it from the Media Library?
- How could I fix the lowercase problem in nextgen gallery? [closed]
- Advanced video gallery plugin needed [closed]
- Plug-in that shows x number thumbnails from another post
- How to find the WordPress Nextgen galleries which are not used in WordPress posts?
- Any gallery plugins that allow commenting on single images?
- jQuery gallery plugin to interface with Picasa
- Looking for a photo gallery plugin [closed]
- WordPress Gutenberg custom block
- How to add gallery to post and make seperate album page with gallery link to post?
- Displaying all the images from all of my articles
- WordPress show descriptions under images in gallery
- Custom Gallery plugin uploading to different dir, and post to page
- Render Shortcode in Lightbox Gallery
- Render Shortcode in Lightbox Gallery
- How can I disable Jetpack plugin on mobile?
- How to move WordPress gallery image out of the link?
- Get url of selected gallery images?
- how to open image gallery in a post/page?
- Multiple thumbnails and one gallery
- How to show an image popup when one clicks on an image thumbnail?
- wordpress gallery plugin won’t show gallery online
- Any plugins that upload, resize, and display images? [closed]
- Display Facebook photo albums and photo comments?
- Plugins not showing on dashboard?
- Get ID of a NextGen album that is linked to a subpage [closed]
- Continuous jQuery Slider / Carousel Plugin with linkable slides [for WooCommerce]
- How to show image caption in Woocommerce gallery
- How to get a variable number of posts per post type on the main loop?
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Difference between deactivating, uninstalling, and deleting plugins
- Custom Text Under Navigation Links
- How do I know which plugin uses the most resource?
- force customers to add only single item to card per purchase EDD [closed]
- How to obtain page breadcrumb based on menu structure only?
- 404 Error on Activate / Deactivate Plugin
- How to Use Parameters with a Do_Action Function Within PHP Tags
- Landing Page Redirect Chain | http->https->https www
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- Plugin to create forms using HTML [closed]
- Tools for styling code snippet in a web page
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- How to remove a class function from a plugin by using remove_action()?
- Blurry images when loading the page first time
- Hook for altering the content of all wp mails
- How to add a button to check the emails of my domain?
- WordPress Sitemap for MSSQL
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- How to write different events from different functions in my file to a log file in WordPress
- Create a form and have custom menu display based on user answers?
- WordPress eMails not working
- Problem with conditional woocommerce custom checkout field
- Content-single.php inside my plugin
- Change wp_mail SMTP settings for each E-Mail
- How to set the captcha at the bottom of comments textarea
- Pass strings to plugin function [closed]
- Place max_execution_time in plugin [closed]
- Is there a WP-Plugin to convert PNG to GIF? [closed]