Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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;
?>
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #custom #field
ADD COMMENT
Topic
Name
1+7 =