I have such a thing, but I want to get a direct link to the jpg, I want to open this picture in the window .. now shows only the image size specified in the file: function.php
my code:
$args = array(
‘cat’ => 21,
‘showposts’ => 1,
‘orderby’ => ‘modified’
);
query_posts($args);
if ( have_posts() ) : while ( have_posts() ) : the_post();
echo ‘<h2 class=”widgettitle”>Rysunek dnia</h2>’;
echo get_the_post_thumbnail($post->ID, ‘rysunekdnia’);
// if(has_post_thumbnail()) the_post_thumbnail(‘rysunekdnia’);
endwhile; else: endif;
wp_reset_query();