Periksa apakah ID post ada WordPress
post_exists(get_the_title($postID)); //returns $postID or 0
Heinz
post_exists(get_the_title($postID)); //returns $postID or 0