-
-
Save sabotawsh/5b6dc795665a6166ec002c68af8f74b0 to your computer and use it in GitHub Desktop.
Print Custom Field IF Custom Field Exists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(get_post_meta($post->ID, 'single-bottom-ad', true)): ?> | |
<div id="single-bottom-ad"> | |
<?php echo get_post_meta($post->ID, 'single-bottom-ad', true); ?> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment