How to link the feature image
-
Hi,
I have the following code
<?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?>
What I would like to do is turn the thumbnail into a link but I would like it to link to the website I assign when I upload the image through admin. Is this possible? How would I do this? Normally that link is the individual photo BUT I would like it to link to a website I assign myself. I would also like the link to have a target.Please help!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘How to link the feature image’ is closed to new replies.