Search Post By Post Title In Wordpres

Code
$args = array("post_type" => "mytype", "s" => $title);
$query = get_posts( $args );

Leave a Comment