I added a text field to the posts filter form and I use s= parameter to make the search work. But how to search only in the title of the post (not in the content)?
HTML:
<input type="text" name="search" placeholder="Search..." value="">
<button>Filter</button>
PHP:
$args = array(
'post_type' => $_POST['posttype'],
'orderby' => $_POST['orderby'],
'order' => $_POST['order'],
's' => $_POST['search']
);