I am having a problem at the site ivanschneider.de regarding the thumbnails for the posts.
I wanted to have big thumbnails with 650 x 0 pixels. So I added this code to k2-loop.php:
<div class="entry-content">
<?php if ( function_exists('has_post_thumbnail') and has_post_thumbnail() ): ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail( array( 650, 0 ), array( 'class' => 'alignleft' ) ); ?></a>
<?php endif; ?>
</div><!-- .entry-content -->
For now that is working. Whenever I go to the dashboard of Wordpress and set a new image as article thumbnail, it generates the 650 x 0 image and shows it correctly.
But then I am using another plugin called related post thumbnails, which shows some thumnails/links to other related posts. Because I have no small thumbnails set, it shows those thumbnails of those big 650-px-images in small and not proportional, which looks ugly.
So, I went to the options of the media library and set there the thumbnails size to 150 x 150 pixels to have some thumbnails for plugins like this. I thought, it would create them and leave my post thumbnails in peace.
Now my problem: It seems, that overrides the code I entered above into k2-loop.php. In other words, when I want to create a new post and set an image as post thumbnail, the get the small 150 x 150 size instead of the 650 x 0 size I have set in k2-loop.php.
How can I prevent the overrriding of my k2-loop.php code by the media gallery thumbnails settings?
Thanks a lot in advance.
Kind greetings
I solved that by putting
<?php the_post_thumbnail( medium ); ?></a>"
instead of the array with 650 x 0.