Show testimonials based on post category matching product name

You’ve got an extra closing bracket

if (is_testimonial_category()) == $ptitle ) :

should be

if ( is_testimonial_category() == $ptitle ) :

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