ricktallis
Blocked
Posted 9 months ago #
Hi,
on this page for instance
http://www.ricktallis.com/news/london-2012-inspires-a-generation/
I have called the picture in my single post with this tag,
<?php if ( has_post_thumbnail() ) the_post_thumbnail( '2012inposts' ); ?>
now I want to link that image to it's uploaded path which gives me the full size image on this address,
http://www.ricktallis.com/news/wp-content/uploads/2012/06/london-2012-rick-tallis-all-in-our-hands-blog.jpg
what's the tag I should use for linking the thumbnail to this path which is the original path of the uploaded file.
ricktallis
Blocked
Posted 9 months ago #
thank you so much keesiemeijer, it worked like a charm. thanks a whole lot.
ricktallis
Blocked
Posted 9 months ago #
I beg you a pardon Keesiemeijer since I'm not familiar with php language I was wondering if I were to put my excerpt as the title of my link, how exactly should I add it to this code herein below?
<?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('2012inposts');
echo '</a>';
} ?>
I mean i can see the '"title="' thing but it's like in php every ' and " and . has a meaning so I have no idea where exactly and how I should put this <?php the_excerpt(); ?> in the title part. could you please be kind to guide me? thanks a whole lot.