Help Needed!! – Post Thumbnails With Links
-
Hey folks,
I need your expert help in trying to solve a WordPress problem of mine. Basically, i’m designing a shopping site where products are posts. On the home page there is a best selling section with 4 or 5 thumbnails and excerpts to some of the best selling products. These are inside divs acting as links which when clicked take the user to the individual product page. What i’ve done is utilise the new features of WordPress and added the ‘post-thumbnails’ theme support so that when i add a new product as a post i can use the ‘featured image’ option and WordPress will automatically size the photo i upload to my required measurements on the thumbnails found on the homepage and the main image on the individual product page.
What i am trying to do is have the image on the product page as a link so that when the user clicks on it they will see the image in its original, large size. How is this possible???
Currently the image is called using the following code:
<div class=”image-main”>
<?php the_post_thumbnail(‘single-post-thumbnail’); ?>
</div>
Any help would be greatly appreciated. Thanks in advance,
Patrick.
- The topic ‘Help Needed!! – Post Thumbnails With Links’ is closed to new replies.