Is there a way to work with a specific the_field from an already queried post? [closed]

Try the below code

$ano_candidatura_value = get_field( 'ano_candidatura', $post->ID );

if($ano_candidatura_value == '2018') : 

  // The html code you want to implement

endif;

Hope this helps.

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