/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- Begin photo --> <?php $photo=get_post_meta($post->ID, 'photolink', true); ?> <?php if ( $photo ) : ?> <a rel="lightbox" title="full image" href=<?php echo $photo ?>> <img class="photo" src=<?php echo $photo ?> /></a> <?php endif; ?>
URL: http://bit.ly/nrice08-wpcf