SteveP
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Themes and Templates
In reply to: Conditional Display of Content with Custom FieldsNevermind, worked it out myself. Sorry for the fuss 😛
If your interested how:
<?php $demo = get_post_meta($post->ID, 'demo', true); if ($demo == '') { ?> <?php } else { ?> <div class="containerX"><table border="0" cellspacing="0" cellpadding="5" class="downAlign"> <tr> <td><a href="<?php echo get_post_meta( $post->ID, "demo", true ); ?>" title="Demo"><img src="<?php bloginfo( 'template_directory' ); ?>/images/demo.png" class="none" alt="Demo" /></a></td> <td align="left"> <a href="<?php echo get_post_meta( $post->ID, "demo", true ); ?>" class="postDeets" title="Demo">Demo</a><br /> <span class="underDeet">See our demo</span></td> <td><a href="<?php echo get_post_meta( $post->ID, "download", true ); ?>" title="Download"><img src="<?php bloginfo( 'template_directory' ); ?>/images/download.png" class="none" alt="Demo" /></a></td> <td align="left"> <a href="<?php echo get_post_meta( $post->ID, "download", true ); ?>" class="postDeets" title="Download">Download</a><br /> <span class="underDeet">Get the source</span></td> </tr> </table></div> <?php } ?>
Viewing 1 replies (of 1 total)