Fields are not displayed on front end under custom php code in Advanced Custom Fields and Flexible Content field WordPress

Recommend changing $wp_query to a different name: because it’s a custom WP_Query, best not to use a variable name that WP core uses.

You likely don’t need wp_reset_postdata(), but I could be mistaken on that (I’ve not needed to wp_reset_postdata() recently).

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