I am using following code to get the images loaded into a post gallery. this is working and returning images but all in small size 150 x 150 px
Can you please let me know how I can modify the code to return the original size of the images in galley?
I have seen some post here at Stack Exchange but they all are dealing mostly with thumbnails not WordPress Galley
<?php
/* The loop */
while ( have_posts() ) : the_post();
if ( $gallery = get_post_gallery( get_the_ID(), false ) ) :
// Loop through all the image and output them one by one.
foreach ( $gallery['src'] AS $src ) {
?>
<img src="<?php echo $src; ?>" class="w-100" alt="Gallery image" />
<?php
}
endif;
endwhile;
?>