open featuredImageCropped thumbnail in the_post_thumbnail( 'full' );
-
Hi,
i have on my template page this code above,when image clicked, then it goes single portfolio item page,but i want to use the_post_thumbnail( ‘full’ ); to open that image in full.
i am trying to do that with featherlight<a class="thumbnail" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail('featuredImageCropped'); ?> </a>
on single portfolio page i use
<div id="mylightbox"> <a href="#" data-featherlight="#mylightbox"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } the_content();?></a> </div>
and it works,but not on that page where i want it, also when i use this code on that page then it works,but it opens always only the same as first image for every image i click.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘open featuredImageCropped thumbnail in the_post_thumbnail( 'full' );’ is closed to new replies.