Custom Function for Portfolio Archive Template With Conditonal Tag

Use is_post_type_archive():

if ( is_post_type_archive( 'portfolio' ) )
{
    // echo something
}

You can also pass multiple post types here:

if ( is_post_type_archive( array ( 'portfolio', 'project' ) ) )
{
    // echo something
}

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