I would to render a field with a condition “if not empty”, and also to break a line only of the field is not empty.
The basic code enables do the 1st part, but not the second.
<?php echo(types_render_field(“object-date”, array(“show_name” => “true” ))); ?>
I woudl try with the normal WP grammar, but I wonder why the normal WP code does not render the fields values
<?php get_post_meta($post->ID, ‘object-date’, true); ?>
- The topic ‘[Plugin: Types – Custom Fields and Custom Post Types Management] Render a field with condition "’ is closed to new replies.