Hi, Tahir!
I’m using your plugin and @ch6x code tip but I have a lightbox which I must call the original image size and the thumbnail size in a custom post type. With the <?php echo $image; ?>, I’ve got the original size, but I’m not having success with the thumbnail.
Can you help me?
Thanks!
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( is_single() ) : ?>
<h2><?php the_title(); ?></h2>
<ul>
<?php if ( get_post_meta( get_the_ID(), 'miu_images', true ) ) : ?>
<?php
$array = unserialize(get_post_meta( get_the_ID(), 'miu_images', true ));
$images = str_replace('"', "", $array);
?>
<?php foreach( $images as $image ) : ?>
<li>
<a class="open-lookbook" href="<?php echo $image; ?>" data-fancybox-group="gallery" title="Lorem ipsum dolor sit amet">
<img src="<?php echo $image; ?>" alt="" />
</a>
</li>
<?php endforeach; ?>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php endwhile; ?>