Hi there,
I need to know if it's possible, and if so, how, to do:
If there is a custom field named 'name' that has the value 'value' then do echo this 'string' else, do nothing.
Any ideas?
Cheers!
Steve
Hi there,
I need to know if it's possible, and if so, how, to do:
If there is a custom field named 'name' that has the value 'value' then do echo this 'string' else, do nothing.
Any ideas?
Cheers!
Steve
<?php $value = get_post_meta($post->ID,'name',true); if( $value ) { echo $value; } ?>
Legend. Thanks.
This topic has been closed to new replies.