Advertisement
Guest User

custom field image

a guest
Feb 27th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <!--custom field foto-->
  2. <div id="custom_foto_single_posts" class="foto">
  3. <?php $foto = get_post_meta($post->ID, 'foto', true); ?>
  4. <?php if($foto): ?>
  5. <img src="<?php echo $foto ?>" alt="imagen principal post" width="520"/>
  6. <?php endif; ?>
  7. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement