Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created August 13, 2012 03:07
Show Gist options
  • Select an option

  • Save pippinsplugins/3336614 to your computer and use it in GitHub Desktop.

Select an option

Save pippinsplugins/3336614 to your computer and use it in GitHub Desktop.
$formerprojectnumber = get_post_meta($post->ID, 'ecpt_formerprojectnumber', true);
if ( empty( $formerprojectnumber ) || !is_array( $formerprojectnumber ) || $formerprojectnumber == '' ) {
echo 'None Entered';
} else {
echo $formerprojectnumber;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment