Created
February 12, 2013 19:09
-
-
Save kraftbj/4772423 to your computer and use it in GitHub Desktop.
Conditionally show meta data
This file contains 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 | |
$publication = get_post_meta($post->ID, 'publication', true); | |
if ($publication) { ?> | |
<div class="publication">Originally found in <?php echo $publication; ?></div> | |
<?php } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment