Thread: Code Help
View Single Post
Old 03-12-2012, 02:38 AM  
rweb
Registered User
 
Industry Role:
Join Date: Feb 2012
Posts: 24
I assume you're talking about WordPress.

I don't know what are the $name, $video and $pics variables in your code, but if you have a custom field named 'shots' and you want to display it's value if it exists, then this works:
PHP Code:
<?php
$shots 
get_post_meta($post->ID"shots"true);
if(
$shots) {
?>
  <td><span>Cumshots:</span> <? echo $shots ?></td>
<?php
}
?>
rweb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook