I want to display all the images added as gallery in a post with prettyphoto class.
I am using this code.
<?php
/* The loop */
while ( have_posts() ) : the_post();
if ( get_post_gallery() ) :
$gallery = get_post_gallery( get_the_ID(), false );
/* Loop through all the image and output them one by one */
foreach( $gallery['src'] AS $src )
{
?>
<a href="<?php echo $src; ?>" rel="prettyPhoto[pp_gal]"><img src="<?php echo $src; ?>" alt="Gallery image" /></a>
<?php
}
endif;
endwhile;
?>
Its is displaying the photos but it is showing only thumbnail as src. I want to display Full Image.
How can i display full image instead of thumbnail ?