Link to full size image or attachment page in photo theme

My site is using WooThemes Statua theme. I’m trying to get my resized slider images to link to their respective full size images (or attachment pages).

I asked a similar question on the WooThemes support forums (members login required) and the code they provided links the images to the resized 960px Large image size instead of the Full size images.

Read More

Here’s an example page on my site, using the single.php template, and its code.

How can I get the slider images to link to the full size originals or attachment pages?

Related posts

Leave a Reply

2 comments

  1. $image = wp_get_attachment_image_src( get_post_thumbnail_id(  $post->ID ), "full" );
    
    echo '<a href="' . $image[0] . '">Link to Full Size</a>';
    
  2. You have got a $photo_size variable in your linked code. Change it according to sizes listed in the Codex (from large to full). Furthermore, you should point Woo at this, as they are using timthumb in the theme.