Hi,
I have custom plugin and its creating custom content type and how to display it as well, How can i get the field value inside that plugin.?
Thanks
Hi @woody
You can always use the get_field() function to grab the values of the custom fields, store them in a variable and later echo them with the same function. You can use the following code in your template:
$value = get_field( “text_field” );
if( $value ) {
echo $value;
} else {
echo ’empty’;
}