Unable to render custom field after attempt to generate a list of recent post in page template

You overwrite the global $post which is where that function gets the post ID from to fetch your custom field. You need to add wp_reset_postdata() after you run other queries that use $post.

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