I am building a portfolio page with custom fields for the title and tme small image location. I am sure there is a better way to do this. But for now this will work.
I am trying to put lightbox, so when you click on the image the lightbox takes over and enlarge the image.
this is the code:
<?php $image = get_post_meta($post->ID, ‘webWork_1’, true); ?>
<?php $link = get_post_meta($post->ID, ‘webWorkLink_1’, true); ?>
” rel=”lightbox”><img src=”<?php echo($image);?>” alt=”recent work” />
<span><?php $title = get_post_meta($post->ID, ‘webWorkTitle_1’, true); ?> <?php echo($title);?> </span>
I am not sure how to how to link it to lightbox, I have rel=”lightbox”, does anyone know what I can put into the rel to make it to work?
- The topic ‘lightbox v.3 and wordpress 2.5 custom fields’ is closed to new replies.