Init Live Search – A Fast, Lightweight, and Smart Search Plugin for WordPress

Version: 1.8.7 Tiếng Việt

Init Live Search – A Fast, Lightweight, and Smart Search Plugin for WordPress
Init Live Search is a live search plugin for WordPress, designed with a focus on speed, simplicity, and performance. Built with pure Vanilla JavaScript and powered by the WordPress REST API, it provides a smooth, instant search experience without reloading the page.

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 .dark class to the shortcode container — no dependency on the body class.
  • WooCommerce Expansion: Added new slash commands like /brand, /attribute, /variation, /coupon, and improved /price with 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., /recent or /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, or css)
  • 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 localStorage to 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.css in 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

  1. Install and activate the plugin as you would any standard plugin.
  2. It works automatically on all <input name="s"> search fields.
  3. You can open the search modal via Ctrl + / or a triple-click anywhere blank.
  4. 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!

Review

5.0/5 (3)

Changelog

  • 1.8.7 – 404 Smart Redirect & Unified Resolver
    • New Auto Redirect 404 to Best Match option:
      • Automatically redirects 404 pages to the most relevant post using the Init Live Search relevance engine
      • SEO-safe: redirects only when a valid match is found, preventing loops or incorrect mappings
      • Theme-friendly: fully optional and toggleable via a checkbox in the settings panel
    • Multi-post-type support for smart redirect:
      • Respects the plugin’s Post Types to Include configuration
      • No longer locked to post; works seamlessly with custom post types
      • Redirects only to published posts that belong to the allowed post type list
    • Deep integration with the unified post type resolver:
      • 404 redirect now uses init_plugin_suite_live_search_resolve_post_types() for consistent behavior across features
      • Fully filterable via init_plugin_suite_live_search_post_types
      • Allows themes/plugins to enforce or modify post types without touching core code
    • Code quality improvements & PHPCS compliance:
      • Fully sanitized handling of $_SERVER['REQUEST_URI'] (unslash + sanitize + no raw usage)
      • Standardized function prefixes: init_plugin_suite_live_search_*
      • Eliminated InputNotSanitized warnings by separating raw and sanitized variables
  • 1.8.6 – Shortcode Enhancements & Code Quality
    • Shortcode [init_live_search] upgraded:
      • New attributes added: width, max_width, align, id, name, aria_label, button (show/hide), improved radius handling
      • Users can now customize UI directly from the shortcode — no CSS required
      • Backward-compatible: existing shortcode setups continue working as before
    • Security & code quality improvements (PHPCS / SQL):
      • Escaped all dynamic attribute outputs (id, class, style, …)
      • Converted raw LIMIT $internal_limit to LIMIT %d inside SQL
      • Fixed placeholder warnings by passing correct parameter count to $wpdb->prepare()
      • Scoped PHPCS ignores — only where required, without bypassing the entire file
    • Developer experience improvements:
      • Cleaner handling of dynamic IN() placeholder lists
      • No changes in search logic or performance — just safer and cleaner code
  • 1.8.5 – WooCommerce UX Consistency
    • Fixed issue with the .ils-cart-btn button in search results:
      • Previously, clicking the button for Simple Products triggered the wc-ajax=add_to_cart endpoint and returned a JSON response instead of redirecting
      • Now, all product types (Simple, Variable, Grouped, etc.) consistently redirect to the product page
      • Ensures unified behavior across all WooCommerce product types in live search results
    • Improved user experience (UX):
      • Maintains consistent “View Product” behavior across all items
      • Prevents JSON response or AJAX error pages when clicking “Add to Cart” inside live search
    • Acknowledgment: Special thanks to m0n0brands for reporting and helping confirm this issue!
  • 1.8.4 – Dev Filter & Post Type Handling
    • New developer filter:
      • Added init_plugin_suite_live_search_post_types hook for themes/plugins to modify the post_type list
      • Allows extending, overriding, or enforcing specific post types as needed
      • Example: always include manga in search results without affecting plugin settings
    • Code quality improvements:
      • Standardized return values with array_values(array_unique()) to prevent duplicates
      • Ensured clean output without leftover array indexes
      • Maintained full backward compatibility with all existing APIs and shortcodes
  • 1.8.3 – Stability & PHPCS Compliance
    • Critical bug fixes:
      • Fixed the /coupon REST endpoint that could cause 500 Internal Server Error when encountering expired or overused coupons
      • Ensures only valid, active coupons are returned, preventing crashes across the REST API
    • Code quality improvements:
      • Added explicit PHPCS ignores for complex SQL queries (placeholders, interpolated variables, and direct queries)
      • Logic remains unchanged for performance reasons, but static analysis false positives are now suppressed
      • Improved clarity and compliance with WordPress Coding Standards without requiring heavy refactors
    • Overall stability enhancements:
      • Improved parameter validation in dynamic queries to reduce edge-case errors
      • Lower risk of conflicts or unexpected crashes when running in strict environments (e.g. hosting with full PHPCS scans enabled)
      • Backward compatibility fully preserved for all existing APIs, shortcodes, and template overrides
  • 1.8.2 – AI Related Posts Engine v2
    • Upgraded AI algorithm to algo version v2:
      • Replaced the single freshness signal with dual signals: recency (vs. now) and time_gap (vs. source post)
      • Introduced MMR (Max Marginal Relevance) diversification for a better balance between relevance and diversity
      • Automatically filtered and deduplicated candidates, ensuring only publish posts are included
    • Performance improvements:
      • Pre-cached post, meta, and term data to reduce N+1 queries
      • Safer weighted-random RNG for more stable and deterministic selections
      • Cache keys now include versioning for easier invalidation when the algorithm changes
    • Extended developer API:
      • Filter init_plugin_suite_live_search_ai_half_life_recency to adjust the decay curve of the recency signal
      • Filter init_plugin_suite_live_search_ai_half_life_gap to adjust the decay curve of the time_gap signal
      • Filter init_plugin_suite_live_search_ai_mmr_lambda to fine-tune the relevance ↔ diversity tradeoff
      • Filter init_plugin_suite_live_search_ai_selected to modify the final candidate list after diversification
    • Backward compatibility:
      • Existing filters ai_candidates, ai_signals, ai_weights, ai_score remain fully supported
      • No impact on shortcode builder, template overrides, or auto-insert functionality
  • 1.8.1 – AI-Powered Related Posts
    • Introduced new [init_live_search_related_ai] shortcode:
      • Uses AI multi-signal scoring to suggest the most relevant related posts
      • Signals include: tag, series, title bigrams, same_keyword (ACF), category, views, comments, freshness
      • Automatically expands candidate pool from recent posts, same series, or same_keyword field
      • Shares the same templates as [init_live_search_related_posts] — no extra CSS required
    • Developer extensibility:
      • Added init_plugin_suite_live_search_ai_candidates filter to inject custom candidate pools
      • Added init_plugin_suite_live_search_ai_signals filter to extend or override signal scores
      • Added init_plugin_suite_live_search_ai_weights filter to adjust default weight configuration
      • Added init_plugin_suite_live_search_ai_score filter to fine-tune the final score
    • Performance & compatibility:
      • Optimized scoring loop with pre-cached post data to reduce redundant queries
      • Unified rendering pipeline between [init_live_search_related_posts] and [init_live_search_related_ai]
      • Fully backward compatible with shortcode builder, auto-insert, and template overrides
  • 1.8.0 – Major Upgrade to Admin Keyword Generator
    • Major upgrade to the admin keyword generator:
      • Replaced TF-IDF with BM25 scoring for more accurate term weighting
      • Integrated NPMI (Normalized Pointwise Mutual Information) to prioritize semantically strong bigrams
      • Added Log-Likelihood Ratio (Dunning) re-ranking to detect and boost truly collocated word pairs
      • Combined multi-metric scoring for maximum keyword quality and relevance
    • Enhanced bigram-only keyword generation:
      • Focused exclusively on two-word phrases for cleaner, high-impact suggestions
      • Context-aware filtering with strict stop word, stop phrase, and length checks
      • Automatic exclusion of numeric and non-letter sequences, plus duplicate-word pairs
      • Unicode-safe text normalization for both Vietnamese and English content
    • Smarter fallback & resilience:
      • Added soft fallback mode when strict filtering yields no results
      • Guarantees at least 15 high-quality keywords per generation request
      • Maintains diversity by mixing top-performing and randomized bigrams
    • Performance & stability improvements:
      • Optimized BM25 and collocation statistic calculations for large datasets
      • Memory-efficient bigram counting and scoring without sacrificing accuracy
      • Safer regex patterns for dash normalization to avoid PCRE errors
      • Robust error handling to prevent empty-result failures in admin UI
    • Fully backward compatible:
      • Retains existing AJAX endpoints, filter hooks, and settings integration
      • Continues seamless use of _init_view_count and comment counts for engagement-based weighting
  • 1.7.9 – TF-IDF Upgrade & Init View Count Integration
    • Enhanced keyword suggestion system using the TF-IDF algorithm, replacing simple frequency counting
    • Deep integration with the Init View Count plugin — using the meta key _init_view_count to prioritize posts with high views
    • Applied weighting formula with logarithmic scaling to prevent viral posts from dominating
    • Focus on analyzing only titles — removing noise from content, categories, and tags to ensure high-quality keywords
    • Performance optimization:
      • WP_Query fetches only post IDs to reduce database load
      • Streamlined text processing with advanced HTML entity decoding
      • More efficient memory usage by reducing data fetching overhead
    • Improved keyword filtering logic:
      • Context-aware bigram generation; removed trigrams for cleaner results
      • Advanced stop-word filtering for both Vietnamese and English
      • Automatically remove HTML artifacts, entities, and technical terms
      • Diversity-based selection algorithm — avoids duplication and ensures variety
      • Requires a minimum of 2 occurrences, with optimized length filtering
    • Generates up to 10 high-quality keywords per run (increased from 7) with a smart 50/50 selection mix
    • Relaxed overlap rules (60% threshold) to increase keyword variety
    • Fully backward-compatible with existing filter hooks and settings
  • 1.7.8 – Predefined Dictionaries & Vietnamese search boost
    • Added Predefined Dictionaries – 10 topic-based bilingual term sets to enhance synonym expansion
    • Available dictionaries: E-commerce, IT, Marketing, Health, Travel, Education, Food, Sports, Fashion, Entertainment
    • Each dictionary includes 50–150+ English–Vietnamese terms optimized for the Vietnamese market
    • Auto-enabled when at least one dictionary is selected – smartly merged with custom synonyms (user terms take priority)
    • Enhanced synonym logic:
      • Supports bidirectional mapping (English ↔ Vietnamese)
      • Handles multi-word terms and phrase expansion
      • Contextual weighting and deduplication of synonyms
      • Seamless integration with custom synonym system
    • Added complete sanitization for predefined dictionary selections
    • Improved Vietnamese content handling with native term support
  • 1.7.7 – Fixed WooCommerce conflict
    • Resolved fatal error in WooCommerce Payment Settings caused by tab parameter conflict
    • Eliminated global $current_tab variable that interfered with WooCommerce admin system
    • Improved tab processing to operate only within plugin scope, preventing cross-plugin interference
    • Added proper validation to prevent processing null or empty tab values
    • Enhanced admin settings stability and cross-plugin compatibility
    • Tab switching is now completely isolated within plugin scope
  • 1.7.6 – Multi post type support
    • The [init_live_search_related_posts] shortcode now supports a post_type parameter
    • Accepts one or multiple post types separated by commas (e.g. post, post,page, manga,light_novel)
    • The post_type param integrates directly with the internal search engine
    • No need to adjust REST logic or plugin settings — works out of the box with current configuration
    • Shortcode Builder updated to include a post_type text field
    • Post type resolver upgraded to handle both single strings and comma-separated lists
  • 1.7.5 – New Layouts for Related Posts
    • Enhanced [init_live_search_related_posts] shortcode — added template parameter to switch display layouts
    • Available templates:
      • default: Horizontal row with thumbnail on the left (default style)
      • grid: Responsive grid with large image and title
      • classic: Headline with excerpt — blog-style layout
      • compact: Plain text list — minimal style
      • thumbright: Title and date with thumbnail on the right
    • All templates can be overridden via theme by creating init-live-search/related-posts-{template}.php
    • Auto fallback to default if selected template file is not found
    • Improved keyword cleaning logic: removes all non-alphanumeric characters (including emoji, punctuation, Unicode dashes, etc.)
    • Ensures accurate and noise-free related post detection
    • New auto-insert option for related posts — insert after content or before/after comments
    • Can be enabled in plugin settings — uses default shortcode: [init_live_search_related_posts count="10"]
  • 1.7.4 – + / – Operators & Related Posts Shortcode
    • Added support for +keyword (must-have) and -keyword (must-not-have) operators for more precise results
    • Toggle this feature via the “Enable + / – Search Operators?” setting
    • New shortcode: [init_live_search_related_posts] – displays SEO-friendly related posts in static HTML
    • Supports id, count, keyword, css, and schema (JSON-LD ItemList) parameters
    • Auto-splits into 2 columns on desktop when displaying 10+ posts, fully themable via template/CSS
    • Shortcode Builder UI updated – now supports both init_live_search and init_live_search_related_posts
    • New filter init_plugin_suite_live_search_get_smart_post_thumbnail_alt for customizing image alt text
  • 1.7.3 – Async rendering & smoother UX
    • Refactored result flow — main site results are shown immediately, external sites load progressively
    • Replaced Promise.all with separate async handlers — no more blocking full render
    • Results from other sites now stream in smoothly, enhancing perceived speed
    • Fixed loader not hiding when only external site results are found
    • Fixed incorrect “No results” message in certain edge cases
  • 1.7.2 – Visual Shortcode Builder
    • Added a Shortcode Builder UI for [init_live_search] — generate shortcodes visually from the admin panel
    • Supports direct configuration of attributes like type, label, placeholder, class, stroke_width, and radius
    • Includes live shortcode preview and one-click copy functionality
    • Fully localized — all labels can be customized via wp_localize_script()
  • 1.7.1 – WooCommerce Upgrade & New Shortcode
    • Added new WooCommerce slash commands: /brand, /attribute, /variation, /coupon
    • Improved /price slash command — now supports sort and rsort for price sorting
    • Disabled single-word fallback for results from external sites — reduces noise and mismatches
    • Introduced [init_live_search] shortcode — add a search icon or input anywhere
    • Shortcode supports attributes: type, placeholder, label, class, stroke_width, radius
    • Supports direct use of the .dark class on shortcode elements — no need to rely on body class
  • 1.7.0 – Cross-site search
    • New feature: Cross-site Search — combine results from multiple domains
    • Simple config via textarea: Site Name|https://example.com/ (one per line)
    • Automatically fetches results via REST API from listed domains — no extra plugin needed
    • Displays source domain clearly below each result for full transparency
    • Performance optimized: only fetches when necessary, won’t slow down your main site
    • Secure and clean: input is sanitized and passed to JS via localized data
  • 1.6.9 – Smart Synonyms & Flexible Fallback
    • Added Synonym Expansion system — enhances search results using custom word mappings
    • New “Synonyms” tab in the settings page with an intuitive JSON editor
    • Define custom site-specific synonym maps, e.g. { "reaction": ["tương tác", "phản hồi"] }
    • Quickly inject or update synonym pairs using a UI button or Enter key
    • Automatic JSON validation with inline error messages and save protection
    • Improved search logic: when no or few results are found, the system auto-expands queries using synonyms
    • Synonym-based results are scored lower than direct matches to keep relevance priority
    • Fully compatible with all search modes (title, tag, excerpt, ACF, SEO, etc.)
    • New toggle setting: “Enable Synonym Expansion?” — lets you enable/disable the logic without removing your mappings
  • 1.6.8 – Smarter filters & cleaner analytics
    • Added support for multi-term filtering in /tag and /category slash commands (using AND logic)
    • Added /trending slash command using real-time trending data from Init View Count
    • Excluded “Media” (attachment) from the list of selectable post types in the settings — cleaner configuration UI
    • Removed user_id and source from search analytics — lighter, privacy-friendly tracking
    • Optimized internal query limits — now dynamically adapts based on configured result count instead of hardcoding 200
  • 1.6.7 – Stable architecture & custom command support
    • Cleaned up internal helpers and standardized naming — merged detect_language into detect_lang, removed deprecated functions
    • Standardized logic for excerpt handling, thumbnail fallback, and WooCommerce output
    • Enhanced ils:search-started hook — enables full support for custom slash commands from themes or plugins
    • Codebase officially marked as stable — core modules are modular, reusable, and built for long-term extensibility
  • 1.6.6 – Fallback search & UI refinements
    • Added Single Word Fallback logic — automatically splits multi-word queries into individual terms if no results are found
    • Integrated SEO Metadata Matching into fallback — expands result coverage by matching SEO titles and meta descriptions
    • New admin setting: “Show Excerpt in Search Results” — toggle on/off to simplify the UI
    • Refactored search mode handling: moved full, title, tag-aware logic into dedicated functions for better modularity
    • Normalized REST API output — always returns consistent structure even when no excerpt is present
  • 1.6.5 – Smart Snippets & Precise Highlighting
    • Added Smart Excerpt Highlight — automatically generates a short snippet from excerpt or falls back to content when needed
    • Keywords are underlined inside the snippet for better search context and visibility
    • Prioritizes excerpt if available, with intelligent fallback to content
    • Snippet length is controlled on the frontend to prevent UI overflow or layout breakage
    • Improved result ranking algorithm: scores title > excerpt > content, especially in title_excerpt and title_content modes
    • Refactored the get_results() function into clean, modular sub-functions — easier to extend and maintain
  • 1.6.4 – Custom slash commands & new dev events
    • Added new JavaScript event ils:result-clicked — fires when a search result is clicked (includes ID, URL, title, type, category, and slash command)
    • Introduced new filter init_plugin_suite_live_search_commands — allows registering custom slash commands from your theme or plugin
    • Custom slash commands can be handled entirely via JavaScript ils:* events — no need to modify the core plugin
    • Optimized voice search logic using SpeechRecognition — auto-stop after 5s, optional auto-restart, detects language from <html lang="...">
    • Improved mic button UI and error handling when the browser blocks microphone access
  • 1.6.3 – New slash commands & smarter logic
    • Added new slash commands: /day, /week, /month — display the most viewed posts by day, week, or month
    • Added slash command /history — displays recent search queries (stored via LocalStorage)
    • Requires the Init View Count plugin to be active in order to use these commands
    • Fully supports infinite scroll and REST API — optimized for high-traffic WordPress sites
    • Improved slash command detection — only shows available commands based on active plugins and settings
    • Enhanced fallback handling for unknown slash commands — smoother, more consistent UI behavior
  • 1.6.2 – Default Slash Command & UI Tweaks
    • Added option to choose a default slash command when the modal opens (e.g. /recent, /related, /product)
    • Smart Detection mode: automatically selects a command based on current page type (post, taxonomy, product, etc.)
    • Commands like /popular and /read only appear if the corresponding plugins are active
    • Improved admin settings descriptions — clearer and more beginner-friendly
    • Added filters and validation logic to ensure only valid values are saved
  • 1.6.1 – Search Analytics & Tracking Optimization
    • Added a new Analytics tab in admin — track search queries in real-time
    • Logs keyword-based search queries (term, result count, timestamp, source, user ID)
    • Stores logs using rotating transients — lightweight and privacy-friendly
    • Groups similar queries and sorts by frequency (powered by client-side JS)
    • Supports CSV export and log clearing with secure nonce validation
    • Enhanced tracking logic:
      • Only logs meaningful keywords — skips slash commands like /recent or /fav
      • Ignores empty queries or special character-only inputs
    • Improved admin UX: cleaner buttons, responsive layout, grouped query toggles
    • Nonce protection added to all admin actions
    • Internal refactor:
      • Streamlined tracking-related hooks and filters
      • Renamed analytics.php to tracking.php to avoid conflicts with log rendering
  • 1.6.0 – UI Expansion & Preset Style Support
    • Added new option to choose built-in UI presets: style-full.css, style-topbar.css
    • style-full.css: transforms the modal into a full-screen overlay, independent from the page layout
    • style-topbar.css: displays the search UI as a floating top bar, similar to Spotlight or the WP admin bar
    • Supports style overrides by adding a init-live-search/style.css file inside the current theme
    • New option: “Disable all default CSS” — ideal for developers building a custom interface from scratch
    • Improved default UI: better spacing and alignment on mobile, more consistent element gaps
  • 1.5.4 – Search in SEO Metadata
    • Introduced Search in SEO Metadata — enables matching search terms against SEO Titles and Meta Descriptions
    • Supports major SEO plugins: Yoast SEO, Rank Math, AIOSEO, The SEO Framework, and SEOPress
    • Can be enabled or disabled via admin settings
    • Optimized logic to distinguish between search modes: title, title_tag, and title_excerpt
    • New filter: init_plugin_suite_live_search_seo_meta_keys — allows customizing which SEO meta keys are queried
    • Added filter init_plugin_suite_live_search_weights — control result order using custom weights across different data sources
  • 1.5.3 – ACF & Multilingual Support
    • Added support for searching in ACF custom fields — new admin setting allows specifying field keys (e.g. company_name, project_code)
    • Searches only published posts and integrates smart fallback (term trimming and bigrams)
    • New filter: init_plugin_suite_live_search_post_ids — modify result IDs from ACF or other sources
    • Auto-detects current language via WPML or Polylang and filters results accordingly
    • New filter: init_plugin_suite_live_search_filter_lang — restrict results to current language
    • New filter: init_plugin_suite_live_search_category_taxonomy — customize the taxonomy used for displaying category names (e.g., use product_cat for WooCommerce)
    • Improved ACF query performance — joins only published posts and avoids duplicate IDs
    • Finalized filter documentation and synced all translations and UI texts
  • 1.5.2 – Init Smart Tag-Aware Search
    • Introduced a new search mode: Init Smart Tag-Aware Search — combines post title and tag relevance, automatically splits terms to match short tags like php, css, seo
    • Quick Search tooltip now supports single-word selections (previously required 2+ words)
    • Improved UX for slash commands: clearer loading states and smoother infinite scroll behavior
    • Standardized WooCommerce result layout: sale badges, out-of-stock labels, and proper spacing
    • Internal refactor: optimized fallback handling, keyword parsing, and slash command validation logic
  • 1.5.1 – WooCommerce Integration & Slash Command Expansion
    • Added WooCommerce product search via slash commands: /product, /on-sale, /stock, /sku, /price
    • Display product price, sale badges, stock status, and Add to Cart buttons in search results
    • Introduced /price {min} {max} command to filter products by price range (via REST API)
    • Standardized infinite scroll behavior for product-related slash commands
    • Visual badges added for “Sale” and “Sold out” states
    • Slash command visibility now respects the product post type setting in admin
    • Improved keyboard navigation for slash command list (auto-scroll on overflow)
    • Optimized JS rendering logic for cart buttons and stock display
    • Enhanced SKU matching accuracy and price filter precision
    • Fixed minor bug: .ils-fav-btn incorrectly received active class outside /fav command
  • 1.5.0 – Faster interactions & favorite management
    • Added “Quick Search” tooltip when selecting 2–8 words, allowing instant modal activation and search
    • Supported data-ils attribute on any HTML element to open the modal and prefill slash commands
    • Introduced /fav and /fav_clear commands to manage favorite posts using localStorage
    • Enabled adding/removing favorites directly in the result list via a star icon
    • Improved internal command engine: accurately renders stateful results and supports filter reset
    • Refined hiddenUrl logic to automatically reset when no result is selected
    • Unified modal trigger behavior across all entry points for consistent user experience
    • Refactored codebase to prepare for future extensibility without affecting existing API or markup
  • 1.4.3 – Complete Slash Command System & UI Enhancements
    • Pagination and infinite scroll support for commands like /recent, /date, /tax, and /read
    • Improved UI: smoother suggestion pills and better mobile interaction
    • New JavaScript events for developers: ils:modal-opened, ils:modal-closed, ils:results-loaded, ils:search-started
    • Enhanced keyboard UX: reliable navigation through suggestions, commands, and results
    • /clear command now only removes cache entries with the ils-cache-* prefix
    • Optimized rendering logic to prevent scroll glitches or layout shifts with large result sets
    • Refactored internal logic: clear separation of UI, cache, commands, and events for better maintainability
    • No console warnings — production-ready for large-scale sites
  • 1.4.2 – UX Improvements & Deep Link Support
    • Live slash command suggestions when typing /
    • Improved keyboard navigation and selection handling
    • New setting to completely disable slash commands
    • Supports opening modal via ?modal=search or #search
    • Allows pre-filling search term or command via ?modal=search&term=/related
    • Prevents page reload when clicking links with modal=search — opens modal via JS
  • 1.4.1 – Expanded Slash Commands & UX Enhancements
    • Added new slash commands: /related, /read, /random, /categories, /tags, /help, /clear, /reset
    • New option to enable/disable voice input in settings
    • /read command: shows recently viewed posts using localStorage (no REST API required)
    • /related command: suggests posts based on the current page’s title
    • /categories and /tags commands: display popular taxonomy terms as clickable pills
    • Built-in slash command helper UI inside the modal
    • Refactored JS command logic for better modularity and fallback handling
    • UI improvements: pill-style layout and full i18n support for all commands
  • 1.4.0 – Command-based search & REST API optimization
    • Added slash command support: /recent, /popular, /category, /tag, /date, /id
    • Smart /date parsing: accepts formats like Y, Y/m, or Y/m/d
    • Jump directly to a post with /id {post_id}
    • Custom REST API endpoints for each command (/recent, /date, /tax) instead of default WordPress endpoints
    • Command result caching using localStorage — only one API call per command
    • New developer filters:
      • init_plugin_suite_live_search_query_args – modify WP_Query arguments before execution
      • init_plugin_suite_live_search_default_thumb – override default thumbnail image
    • New trigger options: enable/disable Ctrl + /, triple-click, or input[name="s"] separately
    • JS refactor: fully modular command-based structure for cleaner logic and future features
  • 1.3.0 – UX improvements & full code namespacing
    • Added shortcut Ctrl + / to open the search modal
    • Added triple-click trigger (click 3 times on blank space to open modal)
    • Show post type label (Post, Page, etc.) next to each result
    • Auto-generate category filter from results (no extra API call)
    • Improved UX: search icon turns into a clear/reset button when input has value
    • Codebase standardization:
      • All identifiers use prefix init_plugin_suite_live_search_*
      • REST API namespace renamed to initlise/v1
      • Global JS config moved to window.InitPluginSuiteLiveSearch
  • 1.2.0 – Developer-focused enhancements
    • Added experimental voice input using SpeechRecognition API
    • New filters for developers:
      • init_plugin_suite_live_search_enable_fallback
      • init_plugin_suite_live_search_post_ids
      • init_plugin_suite_live_search_result_item
      • init_plugin_suite_live_search_results
    • New settings:
      • Enable/disable fallback logic (shortened terms and bigrams)
      • Enable/disable plugin default CSS
    • Dark mode support via CSS class or global JS config
  • 1.1.0 – Major upgrade
    • Enhanced fallback logic with trimmed term and bigram suggestions
    • Remembers previous search term when reopening modal
    • Input limited to max 100 characters
    • New options:
      • Enable result caching via localStorage
      • Automatically append UTM from URL to result links
    • Dark mode support via class or global JS config
  • 1.0.0 – Initial release
    • First stable version released
    • Modal-based search powered by the WordPress REST API
    • Full keyboard navigation: Arrow keys, Enter, Escape
    • Support for manual and auto-generated keyword suggestions
Made with in HCMC.

Comments


  • No comments yet.

Init Toolbox

Press Ctrl + \ on desktop, or swipe left anywhere on mobile.

Login