is_singular just won’t work [closed]

I believe you are trying to check post type inside the Loop. To check the post type, try this:

global $post;
if('post' == $post->post_type ){
  // post stuff here
}
else{
  // aggregato stuff here
}

Alternatively, you can also use get_post_type() function to get post type of current post.

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