Codice PHP:
if($custom_desc_value) {
            
$text $custom_desc_value;
        } elseif {
            
$text $post->post_content;
        } else(
$post_use_title && !empty($post->post_content)) {
            
$text $post->post_title;

        } 

perchè non va bene ?