Anyone know how to use ACF and show custom fields for logged in users only on a post? [closed]

In the template you just need to check if the current user’s logged in with is_user_logged_in(). Then output whatever HTML/PHP (including ACF functions) that you only want to show logged in users:

<?php if ( is_user_logged_in() ) : ?>
    <!-- Output for only logged in users here. -->
<?php endif; ?>

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