how to search a post by title in wordpress site code example
Example: search post by post title in wordpres
Code
$args = array("post_type" => "mytype", "s" => $title);
$query = get_posts( $args );
Code
$args = array("post_type" => "mytype", "s" => $title);
$query = get_posts( $args );