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.
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.