Only show posts belonging to multiple cateogries at same time

To get posts that belongs to all selected categories, you can make use of the category__and parameter.

Example:

You can the following to your query arguments, this will only display posts that are in category 1 AND 2

'category__and' => array( 1, 2 ),

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