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
- Unable to Edit or Add Photo Gallery Under Portfolio in WordPress 6.2.5
- WP galleries in posts after import. How do I do it?
- Auto Stock Update after Order cancel from Admin of Woocommerce?
- Duplicating wordpress install issue
- Preset categories in wordpress by GET-paremters [duplicate]
- Display HTML5 jQuery Audio Player On Front Page
- I Need To Display A Specific Product (Called By Meta Field) On It’s Current WooCommerce Category Page
- Notifications Bar on home page only
- Woocommerce add product variations block to my custom template
- query_vars in plugin when using custom permalinks
- How Do I Add Product Pictures To Search Results Of A Custom WordPress Theme Using A WooCommerce
- Receiving error with Custom Tables plugin
- Please Check this ‘.htaccess’ File
- How should I force WordPress to give proper name for the uploading images?
- How to make is_admin() return false when I need it to?
- WordPress Plugin to for moving home page slideshow? [closed]
- Images get uploaded itself from the computer
- Q&A lite plugin comments
- Facebook comment into my blog
- Integrating WordPress Content into a jQuery Slider
- Distribute post content through several divs [closed]
- Looking for a home page carousel [closed]
- Serious social interaction [closed]
- plugin how to find code and edit it in a template file?
- WordPress file manager plugin [closed]
- getPost() method and Pagination
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- Sell “create a post”, paid account for post creation
- contact form 7 captcha support anyother captcha plugin? [closed]
- WordPress Cumulus
- WordPress create permalink structure for custom post type with userid