iMegaSearch replaces the search experience on your site with a full-screen overlay that shows grouped results while the visitor types: products, posts, pages, categories, tags, or any public post type and taxonomy you choose.
Most live-search plugins send a request to WordPress on every keystroke. On a typical host each of those requests boots WordPress and all of its plugins, which is why live search so often feels slow. This plugin works differently: it builds one small static index file of your content, the browser downloads it once (it is cached like any other static file), and every search after that is matched locally in a few milliseconds.
/?s=, with a tab and a count for each group. Use it as your theme’s search page or place it anywhere with a shortcode.[imegasearch_button] prints a search button that opens the overlay. Attributes: label, class, and icon="no" to hide the magnifier.[imegasearch_results] renders the full grouped results page wherever it is placed.Any element with the mgs-open class or a data-mgs-open attribute also opens the overlay.
templates/search.php to your-theme/imegasearch/search.php.imegasearch_available_groups, imegasearch_index, imegasearch_post_item, imegasearch_term_item, imegasearch_max_items, imegasearch_preferred_taxonomies, imegasearch_label_taxonomy, imegasearch_config, imegasearch_load.imegasearch_index_built.window.iMegaSearch.open( 'term' ), .close() and .reload().wp imegasearch rebuild and wp imegasearch status.