Apply Post Class to Custom Post Type

You can conditionally check for post type like this:

Code:

if ( 'services' == get_post_type( $post->ID ) ) {
    //your code
}

See at the Codex: Conditional Tags, but is_singular() does this too.

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