Query posts that have all the specified tags

To display posts from either tag you need to use tag__in instead of tag__and . This will return posts from either tag id.

$tag_query = new WP_Query( array( ‘tag__in’ => ’13, 27′ ) );

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