Forked from seamusleahy/NextGEN echo gallery pictures
Last active
August 29, 2015 14:17
-
-
Save tessguefen/31b42dfd7386db6576fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<?php | |
// nggdb::get_gallery( <gallery ID> ) | |
// Get an array of nggImage objects. | |
$slides = nggdb::get_gallery( 1 ); | |
foreach( $slides as $slide ) { | |
// To see all the methods and attributes available, nextgen-gallery/lib/image.php | |
echo '<li><img src="'.($slide->cached_singlepic_file( 872, 331 )).'" alt="'.esc_attr($slide->alttext).'" /></li>'; | |
} | |
?> | |
</li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment