Using add_filter to prepend content, result is out of order

The problem not it wp hook,
the_field() displays the value of a specific field, so you need to use get_field() instead, which returns a value.

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