I have 3 custom fields on a page, they are dailytip_1, dailytip_2 and dailytip_3.
So I want to show only 1 tip of the 3 tips randomly on the page. What I can do? Thanks!
<?php $dailytip_1 = get_post_meta($post->ID, 'dailytip_1', true); ?>
<?php if ($dailytip_1 !== '') { ?>
<p><?php echo get_post_meta($post->ID, 'dailytip_1', true); ?></p>
<?php } ?>