I am pretty new to WordPress. I want to know how to define image width and height size for the featured image? I want all my images should be 100 X 100 px. So how to do that? Any help and suggestions are welcome.
I am pretty new to WordPress . I want to know how to define
Share
Use something like this in your function.php file
Where Parameters will be like
$name(string) (required) The new image size name.
$width(int) (optional) The post thumbnail width in pixels.
$height(int) (optional) The post thumbnail height in pixels.
$crop(boolean) (optional) Crop the image or not. False - Soft proportional crop mode ; True - Hard crop mode.
For more information just go through the wordpress codex documentation.