get custom field code example
Example 1: get custom field
/* put this code in home.php file create in child theme */
ID, 'Name', true);
?>
/* Or use this code */
Example 2: acf get field
$value = get_field( "text_field" );
if( $value ) {
echo $value;
} else {
echo 'empty';
}
Example 3: how to get all post fields in wordpress
echo '';
print_r(get_post_custom($post_id));
echo '
';