How to specify a certain amount of images queried, not all?

Add a ‘posts_per_page’=>6 variable to the array that you’re passing to your get_posts query.

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