/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
$number = get_post_meta($post->ID, 'number', true);
if ( $number ) {
echo 'there is a custom field value';
}
else {
echo 'no custom field value';
}
?>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                