Post_thumbnail questions
-
I have split my categories page and my single post page into two columns. On the left side I have include the featured image “post_thumbnail” and on the right side I have included the content.
This is the code I’m using on the single post page so that the featured image shows up as a thumbnail on the left and so that it pops out to the full picture:
<div style="float:left;width:40%;vertical-align:middle;"> <?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" >'; the_post_thumbnail('thumbnail'); echo '</a>'; } ?> </div>
Two questions on this. Can I make it so that the photo pops up to its own small window in front of the page in some fashion instead of the WHOLE page forwarding to the photo and then you have to press Back on the browser? Also, the thumbnail tends to cut off alot. Is there a way or a setting to make it try and fit more of the photo into the thumbnail??
Example: http://crossfitcft.com/2012/08/friday-10-august-2012.html
- The topic ‘Post_thumbnail questions’ is closed to new replies.