• I am running a customized version of Graph Paper Press’s fullscreen.

    Rather than clicking a thumbnail and being redirected to a new page, which is tiresome, how and what can I use such that clicking the thumbnail will open either the image in a lightbox/fancybox/etc or open the post itself in a box?

    I think I can use facebox to achieve that but I’m not sure where the a href links are generated for the thumbnails (not familiar with PHP).

    A little help please? : )

    My URL is here.

    Here’s an excerpt of how the thumbs are generated (I believe). I think this is staring at me in the face but I need to teach myself PHP. Hopefully this can be easily answered!

    <div class="home-thumbs">
    <?php $home_query = new WP_Query("cat=&showposts=6"); $i = 0; ?>
    <ul class="thumbs">
    	<?php while ($home_query->have_posts()) : $home_query->the_post();
    	    $do_not_duplicate = $post->ID; $i++; ?>
    
    	    <li class="post-<?php the_ID(); ?> thumb-big"><?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => '320x320', 'width' => '320', 'height' => '320' ) ); ?></li>
    
        <?php endwhile; wp_reset_query(); $i = 0; ?>
    </ul>
    </div>
Viewing 5 replies - 1 through 5 (of 5 total)
  • Try installing a lightbox plugin.

    Thread Starter cnydaria

    (@cnydaria)

    I have a lightbox plugin already. : )

    I’m trying to find where my links are generated.

    The images are being generated by <?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => '320x320', 'width' => '320', 'height' => '320' ) ); ?>

    Thread Starter cnydaria

    (@cnydaria)

    Thanks, but I’m looking for where the links are being generated so I can insert a rel="__" defined by a lightbox plugin. : )

    Was there ever a solution to this??? I am having the exact same problem!! Thanks ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Open thumbnails in lightbox’ is closed to new replies.