Title: SteveP's Replies | WordPress.org

---

# SteveP

  [  ](https://wordpress.org/support/users/stevep/)

 *   [Profile](https://wordpress.org/support/users/stevep/)
 *   [Topics Started](https://wordpress.org/support/users/stevep/topics/)
 *   [Replies Created](https://wordpress.org/support/users/stevep/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/stevep/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/stevep/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/stevep/engagements/)
 *   [Favorites](https://wordpress.org/support/users/stevep/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Conditional Display of Content with Custom Fields](https://wordpress.org/support/topic/conditional-display-of-content-with-custom-fields/)
 *  Thread Starter [SteveP](https://wordpress.org/support/users/stevep/)
 * (@stevep)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/conditional-display-of-content-with-custom-fields/#post-1007206)
 * Nevermind, 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">&nbsp;&nbsp;<a href="<?php echo get_post_meta( $post->ID, "demo", true ); ?>" class="postDeets" title="Demo">Demo</a><br />&nbsp;&nbsp;<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">&nbsp;&nbsp;<a href="<?php echo get_post_meta( $post->ID, "download", true ); ?>" class="postDeets" title="Download">Download</a><br />&nbsp;&nbsp;<span class="underDeet">Get the source</span></td>
         						</tr>
       					</table></div>
       <?php } ?>
       ```
   

Viewing 1 replies (of 1 total)