acf get text field code example
Example 1: get field of acf texonomy
<?php
// load thumbnail for this taxonomy term
$thumbnail = get_field('thumbnail', $term->taxonomy . '_' . $term->term_id);
?>
Example 2: acf get field
$value = get_field( "text_field" );
if( $value ) {
echo $value;
} else {
echo 'empty';
}