Return to Snippet

Revision: 9753
at November 20, 2008 08:34 by davebowker


Initial Code
<?php
$number = get_post_meta($post->ID, 'number', true);
if ( $number ) {
echo 'there is a custom field value';
}
else {
echo 'no custom field value';
}
?>

Initial URL

                                

Initial Description

                                

Initial Title
Wordpress if custom field else

Initial Tags
wordpress

Initial Language
PHP