Vérifiez si le post ID existe WordPress

post_exists(get_the_title($postID)); //returns $postID or 0
Heinz