posts_per_page is not working by term

I think you are using the tax query in wrong way. Please use 'tax_query' => array( array( 'taxonomy' => '$term->taxonomy', 'field' => 'slug', 'terms' => '$term->slug' ) ),

instead of 'taxonomy' => $term->taxonomy, 'term' => $term->slug,

It will work fine.

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