I'm sure this is possible, I just don't think I am going the right way about it. Basically, I have two custom post types (Investigators & Centres), both of which have search forms on their respective archive pages (below) to filter the archive based on a users input and custom fields (which are being indexed by the Custom fields search plugin).
http://dev.anklearthritis.co.uk/find-a-specialist/ (Investigators) http://dev.anklearthritis.co.uk/centres/ (Centres)
At the moment however, no matter what the user searches, the first 6 entries are always shown.
I'm using the following query (for investigators) in my search file
$args = array( 'post_type' => 'investigator', 'paged' => $paged, 'orderby' => 'title', 'order' => 'ASC', 'posts_per_page' => 6, //Limits the amount of posts on each page 'post_title' => 'LIKE %'.$_POST['s'].'%' ); $loop = new WP_Query( $args );
I then use a while loop to show each result on the page.
Is this even possible, and if so what am I doing wrong? Thanks