Created
June 7, 2010 03:21
-
-
Save danielbachhuber/428190 to your computer and use it in GitHub Desktop.
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 $images = get_post_meta($post->ID, 'image'); | |
if ($images) { | |
foreach ($images as $image) { | |
$image = explode('{}', $image); | |
echo '<div class="image"><img src="/media' . $image[0] . '" />'; | |
if ($image[1]) { | |
echo '<p class="credit">' . $image[1] . '</p>'; | |
} | |
echo '</div>'; | |
} | |
} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment