Reply To: Thumbnail gallery for image posts
Your Account / Forums / Easy FancyBox Pro / Thumbnail gallery for image posts / Reply To: Thumbnail gallery for image posts
hi Rolf,
Thank you for your quick reply. I am using the uploader theme on wordpress. I am new to wordpress so i dont have any experience with the template files but from browsing around i believe this is the code it has for the thumbnail posts that i need help modifying.
while ( have_posts() ) : the_post(); ?>
<?php
$post_id = get_the_ID();
$masonry_class = ( $is_masonry ) ? 'mason-item' : 'grid-item'; ?>
<li <?php post_class( $masonry_class );?> data-media_id="<?php echo $post_id;?>">
<div class="thumbnail">
<?php if ( has_post_thumbnail() ):?>
<figure class="image">
<?php
$thumb = ( isset( $settings['thumb_size'] ) ) ? $settings['thumb_size'] : 'large';
$attachment_id = get_post_thumbnail_id();
$attachment = wp_get_attachment_image_src( $attachment_id, $thumb );?>
<a href="<?php echo esc_url( get_permalink() );?>">
<img src="<?php echo esc_url( $attachment[0] );?>" alt="<?php echo esc_attr( get_the_title() ); ?>" />
</a>
<?php endwhile;?>
