wordpress query post by title code example
Example 1: get post title by post id wordpress
get_post( $post_id )->post_title
Example 2: search post by post title in wordpres
Code
$args = array("post_type" => "mytype", "s" => $title);
$query = get_posts( $args );