Thumbnail generating and posting

How image gets cropped depends on how the respective size was defined with add_image_size().

In the past it was limited to soft or hard crop modes, always respective to the center of image. Now you can also pass more elaborate directions for the crop, such as array( 'left', 'top' ). See the linked documentation for details.

Note that the size applies to all images in general. If you want control over cropping of individual thumbnail, image editor in admin allows that to some degree (Edit image > Apply changes to > thumbnail).

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)