Changing default Thumbnail size
-
Hello, I have been trying to code a theme that used thumbnails to display posts, however, I need the thumbnails to be 360 x 200 px, however, the thumbnails in WP are 284 × 150px, I have changed the parameters in Settings/Media to be 360 x 200, but it does not work, thumbnails remain the same size.
I specified in my functions.php the following code:
<?php add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 360, 200, true ); ?>
and my loop looks something like this:
<?php global $post; $myposts = get_posts('&numberposts=4&category=-111,-1'); foreach($myposts as $post) : setup_postdata($post); ?> <div class="gs5col" id="postbox"> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a> </div> <?php endforeach; ?>
Thank you in advance for any help you can give me!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Changing default Thumbnail size’ is closed to new replies.