[Plugin: WP-Table Reloaded] PHP usage
-
Hi. I’d like to insert some photos into a table with some php that checks that the custom fields containing the links to the photos are not empty. I’m thinking of using Fancybox so that clicking on the image thumb opens the larger image.
Something like this:
<?php $photo = get_post_meta($post->ID, 'large_photo', true); ?> <?php $thumb = get_post_meta($post->ID, 'small_photo', true); ?> <?php if (!empty($photo) && !empty($thumb)) {;?> <a class="single_image" href="<?php echo $photo; ?>"><img src="<?php echo $thumb; ?>" /></a> <?php }; ?>
But this isn’t working, and I’m not sure if it’s because of my php or that what I’m trying to do isn’t possible in the table.
Thanks for any thoughts.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: WP-Table Reloaded] PHP usage’ is closed to new replies.