wordpress カスタムフィールドの値の有無で条件分岐
//サンプルは一番シンプルなパターン
// より詳しい設定なら http://the-zombis.sakura.ne.jp/wp/blog/2011/11/08/post-1035/
$hoge = get_post_meta($post->ID, 'カスタムフィールド名', true);
if( empty( $hoge ) ){
// カスタムフィールドの値が存在しない場合の処理
} else{
// 値が存在する場合の処理
}