Fixing conditional custom fields on single.php