Does it work with wp_get_attachment_image?
-
I am using the plugin and in my single.php (post template) I am calling images like so:
<?php $i = 1; foreach( $gallery as $image ): $image = wp_get_attachment_image( $image['id'], 'listing_full' ); ?> <li data-index="<?php echo $i; ?>"> <?php echo $image; ?> </li> <?php $i++; endforeach; ?>
But it appears that the full size image is being used.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Does it work with wp_get_attachment_image?’ is closed to new replies.