I have a field on my portfolio admin page which shows the url when the user write a url(obviosly).
I want to when the user write in the field, elements appear along with it. And if the field is empty dont shows anything.
The code that shows what the user is writing in this field is:
<?php echo get_post_meta($post->ID, '_url', TRUE);?>
I tried:
<?php if (strpos($post->ID,'_url') !== true) { ?>
[CONTENT] <?php echo get_post_meta($post->ID, '_url', TRUE); ?> [/CONTENT]
<?php } ?>