How do I get resized thumbnails?

Your example code is calling the full size image as you mention and resizing to the dimensions you feed into the array.

I’ve answered this question before here, but the basic idea is that you’ll want to use add_image_size() in your functions.php to tell WordPress you’d like it to create a new image size when you upload images.

Then you’ll need to use wp_get_attachment_image() to call the image into your template.

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