If Specific Post, Link Elsewhere

The reason why your check didn’t work is because is_singular() checks for post types, not for post IDs.

is_singular( 'product' ) checks if the current post is of the type product, nothing else.

The comparison 2295 === get_the_ID() does exactly what you need.

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