How to display custom field from a gallery thumbnail?

if your field saved as post_meta, in your page, you can retrieve it using below the code

<?php $views = get_post_meta( $current_post_id, 'views', true ); ?>

then display it using using <?php echo $view; ?>

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