Thread: Code Help
View Single Post
Old 03-12-2012, 12:46 AM  
dgraves
Confirmed User
 
dgraves's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: Scottsdale
Posts: 2,283
Code Help

hey guys, i need some help with some code. what code would i use if i only wanted to show "Cumshots" when there is a value entered? i tired:

<?php if((get_post_meta($post->ID, "shots", true)) ) { ?>

but it didn't work.

<td><span>Name:</span> <? echo $name ?></td>
<td><span>Video:</span> <? echo $video ?></td>
<td><span>Pictures:</span> <? echo $pics ?></td>
<td><span>Cumshots:</span> <? echo $shots ?></td>
dgraves is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook