Posted By

nathanbweb on 05/11/11


Tagged

php wordpress fields custom


Versions (?)

WordPress display custom field


 / Published in: PHP
 

URL: http://bit.ly/nrice08-wpcf

  1. <!-- Begin photo -->
  2. <?php $photo=get_post_meta($post->ID, 'photolink', true); ?>
  3. <?php if ( $photo ) : ?>
  4. <a rel="lightbox" title="full image" href=<?php echo $photo ?>>
  5. <img class="photo" src=<?php echo $photo ?> /></a>
  6. <?php endif; ?>

Report this snippet  

You need to login to post a comment.