Super Ajax Search
Super Ajax Search
Description
Super Ajax Search enhances your website’s search with instant live results as users type. Built on the WordPress REST API with a modern vanilla JS frontend — no jQuery dependency, lightning fast.
Free Features:
- Live Search — Instant AJAX-powered results as you type.
- Thumbnails — Display featured images in search results.
- Smart Excerpts — Show content snippets with the search keyword highlighted in bold.
- Result Grouping — Organize results by Post Type or Category.
- Category Filter — Optional dropdown to filter results by category.
- Debounced Search — 300ms debounce prevents excessive server requests.
- Transient Caching — 1-hour cache for identical queries (configurable).
- REST API — Modern endpoint replaces admin-ajax.php for better performance.
- Keyboard Navigation — Arrow keys, Enter, and Escape support.
- Accessible — ARIA labels, roles, and semantic HTML.
- Secure — Nonce verification, input sanitization, output escaping, publish-only results.
- Customizable — Configure post types, result limit, placeholder text, no-results message.
- Shortcode —
[super_ajax_search]with optional attributes. - Multi-instance — Multiple search forms per page, no ID conflicts.
- Responsive — Mobile-friendly layout.
- Lightweight — Under 15KB total (CSS + JS), zero dependencies.
Support
If you have any suggestions, need any help, or want to connect with me, please reach out:
* Email: info@techwithnavi.com
* Website: https://techwithnavi.com/
Installation
- Upload the
ajax-searchwpfolder to/wp-content/plugins/. - Activate through the Plugins menu.
- Go to Super Ajax Search in the admin sidebar to configure settings.
- Use the shortcode
[super_ajax_search]on any page or post.
Shortcode Attributes:
placeholder— Override the search input placeholder.category_filter— Show a category dropdown ("true"or"false").
Example: [super_ajax_search category_filter="true" placeholder="Find products…"]
Faq
Place [super_ajax_search] in any post, page, or widget where you want the search to appear.
Yes. Go to Super Ajax Search settings and check the post types you want included.
Yes. Enable the “Products” post type in the settings.
Yes. All inputs are sanitized, outputs are escaped, and only published posts are returned.
Reviews
Super impressed with AJAX Search for SearchWP
By vartikapandey94 on August 30, 2024
This plugin is a game-changer for my website's search functionality. The AJAX feature provides instant, relevant results, making the user experience much smoother. Five stars all the way!
This is an outstanding plugin
By infotheme (infotheme.com) on August 24, 2024
Ajax SearchWP is an outstanding plugin that has significantly enhanced our website’s search functionality. The live search results and autocomplete features are a game-changer, making it easier for our users to find what they need instantly. It’s easy to set up, lightweight, and integrates seamlessly with our site. Highly recommended for anyone looking to improve their WordPress search experience.
Changelog
2.0.0
- New: Thumbnail support in search results.
- New: Smart excerpts with keyword highlighting.
- New: Result grouping by Post Type or Category.
- New: Category filter dropdown.
- New: 300ms debounced search to reduce server load.
- New: REST API endpoint (replaces admin-ajax.php).
- New: Transient caching (configurable TTL).
- New: Keyboard navigation (arrow keys, Enter, Escape).
- New: Vanilla JS — jQuery dependency removed.
- New: Multi-instance shortcode support.
- New: PHPUnit test suite.
- Security: Explicit
post_status => 'publish'to prevent data leakage. - Security: XSS-safe DOM rendering in JavaScript.
- Fix: AJAX handlers now properly load (fixed
is_admin()bootstrap bug). - Refactor: Full rename from Ajax SearchWP to Super Ajax Search.
- Refactor: Options migrated from
ajax_searchwp_*tosuper_ajax_search_*. - Compat: PHP 8.1+ with typed properties and return types.
- Compat: WordPress 6.7 tested.
1.5.0
- Initial public release.