Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
If there’s no option within the dashboard, you could set this with CSS http://www.w3schools.com/css/css_dimension.asp
THIS array( 150,120)
HMMMM
Hello Mr Andrew … I want to know how to set it with php
Thanks for your help
how to set it with php
from where?
in functions.php of the theme?
as theme option?
there is also some general info in the Codeex http://codex.wordpress.org/Post_Thumbnails
some php code keep the thumbais with fixed size whatever are their origin sizes
just some code to add here
<?php the_permalink() ?>"><?php the_post_thumbnail( );?>
<?php the_post_thumbnail( array( 150,120) );?>
?????
from codex :
set_post_thumbnail_size( 50, 50 ); // 50 pixels wide by 50 pixels tall, resize mode
Set the default Post Thumbnail size by cropping the image (either from the sides, or from the top and bottom):
set_post_thumbnail_size( 50, 50, true ); // 50 pixels wide by 50 pixels tall, crop mode
so can I add this code properly :
set_post_thumbnail_size( 50, 50 )
??