if custom value does not exist, display timedate
-
Hello everyone!
I have a custom value for some posts called tinytext. I want it to display the date of the post IF tinytext does not have a value. Make sense?
Right now I use this code to display the custom value:
<?php if ( function_exists(‘get_custom_field_value’) ){ get_custom_field_value(‘tinytext’, true); } ?>I need to somehow add an else statement that will write the following if there is no value for tinytext:
<?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –>Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘if custom value does not exist, display timedate’ is closed to new replies.