Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $img_url = wp_get_attachment_url(get_post_thumbnail_id(),'full'); // Get full URL to image
- if(img_url) { ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="highlight-img"><img src="<?php echo $img_url; ?>" alt="<?php echo the_title(); ?>" /></a>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment