Hide content from Post Preview

There is the handy is_preview function.

So somewhere in your single.php.

<?php
if (!is_preview()) {
     // Show stuff that doesn't belong on a preview.
}

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