if(isset($_POST['srch_txt'])){
$search_string = stripslashes($_POST['srch_txt']); if(!empty($search_string)){
global $wpdb;
$search_result_posts = $wpdb->get_col("select ID from $wpdb- >posts where post_title like '%"
.$search_string."%' AND post_status = 'publish'");
if(sizeof($search_result_posts)!=0){
$args = array('post__in'=>$search_result_posts);
$res = new WP_Query($args);
echo '<ul>';
&nb
...
Read more »