I'm using custom field data, but a couple of posts have a certain custom fields empty.
So I'd like to echo something like "if custom field exists = <?php echo get_post_meta($post->ID, 'mycustomfield', true); ?>
else = 'hello
'
I suppose it's possible to do it both ways in php and javascript but I have no idea how to type the code in both way, as I'm still a fresh newbie. Can you please help me? Thanks in advance!