I'd love it if I could get a thumbnail created by the new the_post_image (2.9) act as a link to the full size image.
This is a hook to get the thumb pointing to the article it is attached:
add_filter( 'post_image_html', 'my_post_image_html', 10, 3 );
function my_post_image_html( $html, $post_id, $post_image_id );
$html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';
return $html;
}
This gets the link to the post get_permalink( $post_id ) But how do I get the link to the full size image?
This was found here
http://justintadlock.com/archives/2009/11/16/everything-you-need-to-know-about-wordpress-2-9s-post-image-feature
Thanks a lot :)