get acf by id code example
Example 1: get custom field
/* put this code in home.php file create in child theme */
<?php
/*Template Name: Home Template*/
echo get_post_meta($post->ID, 'Name', true);
?>
/* Or use this code */
<?php
$value =get_field('Name');
echo $value;
?>
Example 2: acf get field
$value = get_field( "text_field" );
if( $value ) {
echo $value;
} else {
echo 'empty';
}