Pass the_post() as a parameter

You may not need to pass in the_post(). Calling the_post() sets up the global $post object, and get_field() may also be accessing the global $post object

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