Custom Field Issue
-
Hi
I would like to be able to display a message if a custom field is empty (has no value)
Here is the line of code that displays the custom field
<?php if ($arr[$i]["price"] <> '') { ?> <span class="tag"><span><?php echo esc_html($arr[$i]["price"]); ?></span></span> <?php }; ?>How could I make that code display the word “Sale” if the custom field price is empty?
Looking around for 24 hours I cannot get it to work
Thankyou for taking the time to read this
Kind Regards
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Custom Field Issue’ is closed to new replies.