Ready to get started?Download WordPress


How to link this to that? (5 posts)

  1. ricktallis
    Posted 2 years ago #

    on this page for instance


    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,


    what's the tag I should use for linking the thumbnail to this path which is the original path of the uploaded file.

  2. keesiemeijer
    Posted 2 years ago #

  3. ricktallis
    Posted 1 year ago #

    thank you so much keesiemeijer, it worked like a charm. thanks a whole lot.

  4. keesiemeijer
    Posted 1 year ago #

    You're welcome. :-)

  5. ricktallis
    Posted 1 year 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') . '" >';
    	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.

Topic Closed

This topic has been closed to new replies.

About this Topic