WordPress 根据文章标题获取文章ID
$post = get_page_by_title($title, OBJECT, 'post'); $PostID = $post->ID; //文章ID