Hi,
I know it's a bit cheeky asking for help with a first post, but I searched and couldn't find an answer to me problem.
Basically, in single.php I am grabbing a couple of custom fields by the names of 'demo' and 'download', it is being done thusly:
<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>
Simple enough. And I know... tables... ugghh... not my choice I can assure you.
What I would like is that if those custom fields are not in use at all, then the whole table they are contained within does not show at all.
I cam across this thread
http://wordpress.org/support/topic/204270?replies=6
But it was for displaying the custom field only, and not the surrounding elements too.
Could someone help me out?