Ajax Search is an addon that gives basic functionality for an ajax search via WP_Query. The default search is specific to the post-type "page". The structure of the code is relative to my current style of coding. There are literally dozens of ways to write this functionality, if you feel the need to re-arrange the code and find a better configuration I would love to see it! I'm all about learning new stuff!
- HTML form
- JavaScript
- Php classes to handle initiation and ajax calls.
- tpl-search.php which is a dummy template file to get you off the ground quick.
- form-search.php which is a simple form that is recognized by the javascript class.
If you intend to add form fields you will need to add each field to all three elements in their own respective way.
- HTML form will require the html for the field
- JavaScript will require the field to be added to the 'data' object.
- Php class DoAjaxVCWP will require you utilize the field as you see fit to produce the desired result.