Hide a custom field if is empty
-
Hi:
I have a custom field called “my_name”, if this custom field is empty want to hide. How can i do this?
For example the code is <?php echo get_post_meta($post->ID, ‘my_name’, true); ?>
Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Hide a custom field if is empty’ is closed to new replies.