Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter icoportela

    (@icoportela)

    Damn it!
    It would be perfect for responsive grids, because I could use all the thumbnails with the same size.

    Thanks anyway, Tahir!

    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; ?>
Viewing 3 replies - 1 through 3 (of 3 total)