Version 1.7.x and 1.8.x marks a major leap forward — from smart search to cross-site search. Init Live Search is now ready to serve as a universal search engine across your entire WordPress ecosystem — blazing fast and network-aware.
Watch live demo: https://youtu.be/nZocaTpi2hM
What’s New in Versions 1.7.x & 1.8.x
This release expands Init Live Search beyond the current site while optimizing the logic to integrate seamlessly with any theme — including headless setups or SPAs.
- 404 Smart Redirect: Automatically redirects 404 pages to the most relevant post using the Init Live Search relevance engine — multi–post-type support, SEO-safe behavior, and unified resolver integration.
- Multi-site Search: Perform searches across multiple WordPress sites — just enter a list of URLs in the settings and it works instantly.
- No extra plugin required: Automatically calls the REST API from declared sites — no need to install a plugin on subsites.
- Domain labeling: Each search result clearly shows its source domain — transparent and easy to manage.
- Performance optimized: Only calls APIs when needed, ensuring no impact on the main site’s speed — ready for large networks.
- Simple & safe config: Configure via textarea in the format
Site Name|URL— all data is sanitized and processed through internal JS. - Unlimited mode: Easily turn Init Live Search into an aggregated search tool for your entire site network.
- New Shortcode: Add
[init_live_search]to embed a search icon or input anywhere in your theme. - Advanced customization: Shortcode supports attributes like
type,label,class,stroke_width, etc. — flexible for any layout. - + / – Operators: Support for precise queries with
+keyword(must include) and-keyword(exclude). - New Related Posts Shortcode: Use
[init_live_search_related_posts]to display SEO-friendly static related posts. - Shortcode Builder: Visual UI in admin to generate
[init_live_search]and[init_live_search_related_posts]with live preview and one-click copy. - Direct Dark Mode support: Add a
.darkclass to the shortcode container — no dependency on thebodyclass. - WooCommerce Expansion: Added new slash commands like
/brand,/attribute,/variation,/coupon, and improved/pricewith sorting. - AI Related Posts: New
[init_live_search_related_ai]shortcode using multi-signal scoring (tags, series, ACF, views, freshness, etc.) for smarter recommendations. - Upgraded Keyword Engine: Replaced TF-IDF with BM25 + NPMI + LLR for high-quality keyword suggestions, bigram-focused, Unicode-safe, with intelligent fallback.
- Developer Filters: Added new filters (
ai_candidates,ai_signals,ai_weights,ai_score) for full control over AI logic. - Performance improvements: Scoring algorithm now pre-caches post data, reducing redundant queries and optimizing memory usage for large datasets.
Key Features
High Performance, Zero Dependencies
Built entirely with Vanilla JavaScript — no jQuery, no third-party libraries. All search actions run through a custom, optimized WordPress REST API under the namespace initlise/v1. An intelligent debounce mechanism ensures minimal server load during fast typing.
Results, slash commands, favorites, and reading history are cached locally using localStorage to reduce repeated API calls and speed up the user experience.
Flexible UI with Preset Styles
Choose from built-in UI styles like full-screen (style-full.css) or topbar-style (style-topbar.css), or disable all CSS and create your own. You can also override the default design by adding a init-live-search/style.css file in your active theme.
Smart Suggested Keywords
Admins can manually define a list of suggested keywords or generate them automatically from existing post titles. The system intelligently removes stop words and highlights the most relevant terms for search discovery.
Full Keyboard Navigation & Shortcuts
- ↑, ↓: Navigate between results
- →: Add selected post to favorites
- ←: Remove selected post from favorites
- ↵ Enter: Open selected post
- Esc: Close the search modal
Note: Left/Right arrows only apply when a result is actively selected.
Advanced Search Capabilities
Powerful slash commands: view latest posts (/recent), filter by tags, categories, WooCommerce products, SKU, price range, and stock status. Fully extendable via REST API and custom filters.
Supports deep search into ACF custom fields and SEO metadata from plugins like Yoast, Rank Math, AIOSEO, SEOPress, and The SEO Framework — ideal for content-rich or structured websites.
Highly Compatible & Easy to Integrate
No need to modify your theme or insert shortcodes. The plugin auto-binds to any <input name="s"> field. You can also trigger the modal via keyboard shortcuts, HTML attributes, or even specific URLs.
Fully Responsive & Multilingual
The modal interface is fully responsive and works smoothly on all screen sizes. The plugin includes built-in support for English and Vietnamese, switching automatically based on your site’s language setting.
Simple Configuration
- Select which post types to search:
post,page, or any public custom post type - Choose one or more modal trigger methods: focus on
input[name="s"], triple-click anywhere, or press Ctrl/Cmd + / - Enable or disable Slash Commands — supports commands like
/recent,/tag,/product, etc. - Define a default slash command that runs automatically when the modal opens — e.g.,
/recentor/product - Select search mode: title only, title + excerpt, title + content, or Init Smart Tag-Aware Search (matches post titles and tags, this mode is ideal for short, keyword-heavy content — especially tags like
php,seo, orcss) - Enter a list of ACF field keys for advanced field-based search — e.g.,
company_name, project_code - Enable SEO metadata search — supports plugins like Yoast, Rank Math, AIOSEO, The SEO Framework, and SEOPress
- Synonym System: Configure directly in the “Synonyms” tab — add synonyms using JSON, get real-time error checks, and toggle result expansion when no matches are found.
- Enable smart fallback — automatically trims keywords or uses bigrams when few results are found
- Customize search delay (debounce) from 100–3000ms to balance speed and server load
- Limit the number of results shown in the modal (1–100)
- Set the maximum number of words allowed for triggering Quick Search tooltip (0–20, set to 0 to disable)
- Enable or disable voice input using the SpeechRecognition API (if supported)
- Enable caching of search results in
localStorageto reduce repeated API calls - Select frontend CSS preset: default modal, full-screen overlay, topbar UI, or disable all styles to use your own
- Optionally append a default UTM parameter to all search result links (e.g.,
utm_source=search) - Enter or auto-generate default suggested keywords for instant search hints
Technology Stack
- Vanilla JavaScript: Entire frontend logic written in pure JavaScript — no jQuery or external frameworks
- Custom REST API: Uses standardized endpoints under a dedicated namespace
initlise/v1 - Modular architecture: JS source code is organized by function: trigger, command, rendering, API, etc.
- Zero external dependencies: No third-party libraries — everything is self-contained
- Icons & images: Uses inline SVG and customizable fallback thumbnails via filters
- Global config: Define behavior through
window.InitPluginSuiteLiveSearchConfig - Theme override support: Fully override styles via
init-live-search/style.cssin your theme - LocalStorage-first: Leverages localStorage for caching, slash command history, favorites, and session state
Source Code & Development
Init Live Search is an open-source plugin actively maintained on GitHub. You can follow the development process, get early access to updates, or contribute ideas, report bugs, and suggest new features directly on the repository.
- Official repository: github.com/brokensmile2103/init-live-search
- Click Star to support the plugin — it helps increase visibility in the open-source community.
- Use the Issues tab to report bugs or request new features.
Installation & Usage
- Install and activate the plugin as you would any standard plugin.
- It works automatically on all
<input name="s">search fields. - You can open the search modal via Ctrl + / or a triple-click anywhere blank.
- Configure keyword suggestions via Settings → Init Live Search.
For Developers
Init Live Search is designed for extensibility, with full support for filters, JavaScript events, REST API, and custom slash commands.
Explore the The Complete Guide to Init Live Search to dive into detailed guides and advanced use cases.
Support
If you like the plugin, consider starring it on GitHub — your support helps keep it visible in the open-source community! We welcome all ideas, feedback, and bug reports — let’s make search on WordPress smarter together!