
前言介紹
- 這款 WordPress 外掛「Init Live Search – AI-Powered, Related Posts, Slash Commands」是 2025-05-21 上架。
- 目前有 100 個安裝啟用數。
- 上一次更新是 2026-02-23,距離現在已有 2 天。
- 外掛最低要求 WordPress 5.2 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 6 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
ai search | live search | woocommerce | related posts | slash commands |
內容簡介
總結:Init Live Search 是一款現代、快速且完全鍵盤可訪問的即時搜索外掛,可提供訪客無需重新載入、無需 jQuery 和無延遲的搜索體驗,透過 REST API 即時獲取結果。
問題與答案:
1. Init Live Search 可以為 WordPress 網站的訪客提供怎樣的搜索體驗?
- 提供快速、無重新載入、無 jQuery、無延遲的搜索體驗。
- 通過 REST API 即時獲取搜索結果。
2. 透過什麼方式可以啟用 Init Live Search 的聲音輸入功能?
- 可以透過原生瀏覽器 API 進行聲音輸入。
3. Init Live Search 可以支持哪些鍵盤操作?
- 可以進行箭頭鍵導航、按 Enter 選擇、按 Esc 關閉搜索模式。
4. 這個外掛是什麼組合的一部分,並提供了什麼樣的工具集?
- 這個外掛是 Init Plugin Suite 的一部分,提供了一系列極簡、快速和開發者導向的 WordPress 工具。
5. 在版本 1.4 中,Init Live Search 有哪些新功能或改進?
- 支持斜杠指令搜索(例如/recent、/popular等)。
- 支持智能日期解析(如 Y、Y/m 或 Y/m/d)。
- 可以通過/ID 123立即跳轉到文章。
- 重新統一解析命令結構、強大的分類和日期篩選、本地緩存等多項功能的支持。
原文外掛簡介
Deliver an ultra-responsive search experience to your visitors — no page reloads, no jQuery, no lag. Init Live Search is a modern, lightweight, and fully accessible live search solution for WordPress — now with tag-aware matching, SEO metadata support, ACF integration, WooCommerce product filters, and customizable UI presets.
It replaces the default with a clean, intuitive search modal powered entirely by the WordPress REST API. Everything loads in real-time — with zero disruption to browsing flow.
Perfect for content-heavy blogs, WooCommerce stores, or even headless sites. Every interaction is fast, fluid, and designed to work across devices.
It also brings AI-powered related posts and an advanced keyword generator — giving your visitors smarter ways to discover content.
This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPress.
GitHub repository: https://github.com/brokensmile2103/init-live-search
What’s New in Version 1.8.x
AI-Powered Related Posts: brand new [init_live_search_related_ai] shortcode
Uses multi-signal scoring (tags, series, title bigrams, same_keyword via ACF, category, views, comments, freshness)
Shares templates with [init_live_search_related_posts] (no extra styling needed)
Fully filterable via new developer hooks: ai_candidates, ai_signals, ai_weights, ai_score
Advanced Keyword Generator: upgraded algorithm for admin keyword suggestions
Replaced TF-IDF with BM25 term weighting
Added NPMI and Log-Likelihood Ratio (Dunning) for collocation strength
Focused on bigram-only for higher-quality keywords
Unicode-safe, locale-aware stop words, and soft fallback mode
404 Smart Redirect
Added “Auto Redirect 404 to Best Match” mode driven by Init Live Search scoring
Fully respects “Post Types to Include” settings
Uses unified resolver + filters for extensible post-type handling
Safety checks to avoid loops, invalid targets, and cross-type mismatches
Developer Filters Expansion
New filters added for AI related posts and keyword signals
Complete list now includes over 20 filters (*_fallback, *_post_ids, *_results, *_weights, *_commands, etc.)
Developers can hook into candidate pools, signal scores, and schema output with fine-grained control
Performance Optimizations
Smarter candidate pooling for related posts (recent + context-based)
Pre-cached scoring loop for AI signals to minimize queries
Safer regex handling in keyword processing to avoid PCRE errors
Reduced memory footprint in bigram statistics without sacrificing accuracy
Backward Compatible Enhancements
[init_live_search_related_posts] and [init_live_search_related_ai] now share the same rendering pipeline
Existing templates, schema, and CSS continue to work without modification
Auto insert related posts still works and can be switched to AI mode via shortcode override
Features
Packed with everything a modern live search needs — and more:
Live search via REST API (no admin-ajax, no jQuery)
Smart tag-aware search mode (title + tag match)
SEO metadata support: Yoast, Rank Math, AIOSEO, SEOPress, TSF
ACF field matching and customizable filters
Synonym expansion with fallback scoring logic
Slash commands: /recent, /popular, /tag, /id, /sku, /price, /coupon, etc.
WooCommerce support: search by product, SKU, brand, attribute, variation, coupon
Clean modal UI with keyboard navigation (↑ ↓ Enter Esc)
Optional voice input (SpeechRecognition)
Tooltip Quick Search (select text to trigger)
Favorites system via heart icon or /fav commands
Infinite scroll and smart category filter (no extra API)
Deep linking: ?modal=search&term=...
New [init_live_search] shortcode: insert input or icon anywhere
UI presets: default, fullscreen, topbar — with full CSS override
Local caching + analytics (CSV export, no personal data)
Developer-ready: custom slash commands, REST filters, JS hooks
Dark Mode Support
Enable dark mode for the modal by either:
Adding the dark class:
document.querySelector(‘#ils-modal’)?.classList.add(‘dark’);
Or using a global config:
window.InitPluginSuiteLiveSearchConfig = { theme: ‘dark’ };
Options: dark, light, auto
Admin Settings
Choose post types to include in search
Configure modal triggers (input focus, triple click, Ctrl+/)
Enable slash commands (e.g. /recent, /tag, /id)
Enable support for + and - keyword operators (must-have, must-not-have)
Set default slash command to run on modal open (only if slash is enabled)
Set debounce time and max results
Choose search mode (title-only, tag-aware, full content)
Define custom ACF fields to include in search (optional)
Enable Search in SEO Metadata (Yoast, Rank Math, etc.)
Toggle excerpt display below each result (1-line contextual snippet)
Toggle fallback logic (bigram/trim)
Enable synonym expansion and manage synonym mappings (JSON editor)
Enable Search Analytics to log queries (no personal data stored)
Set max words for tooltip search
Enable voice input (SpeechRecognition API)
Enable result caching (localStorage)
Choose frontend UI style (default, fullscreen, or topbar)
Allow theme override via init-live-search/style.css
Automatically insert related posts after content or comments (optional)
Option to disable all built-in CSS completely
Add default UTM parameter to result links
Define or auto-generate keyword suggestions
Keyboard Shortcuts
Arrow Up / Down — navigate between results
Arrow Right — add selected result to favorites (if not already added)
Arrow Left — remove selected result from favorites
Enter — open selected result or submit
Escape — close modal and reset state
Slash (/) — start a command instantly (e.g., /recent, /id 123)
Developer Reference: Shortcodes, Filters, and Hooks
Shortcodes
[init_live_search]
Display a search icon or input anywhere that opens the Init Live Search modal.
Attributes:
– type: icon (default) or input – choose between a clickable icon or a search box
– placeholder: (optional) text inside the input if type="input"
– label: (optional) adds a label next to the icon if type="icon"
– class: (optional) add custom classes like dark, my-style, etc.
– stroke_width: (optional) set the stroke width for the search icon (default: 1)
– radius: (optional) override the border radius of the input form (default: 9999px from CSS; only applied if value differs)
[init_live_search_related_posts]
Display a list of related posts (static HTML) based on post title or keyword, optimized for SEO and fully themable.
Attributes:
– id: (optional) the post ID to find related posts for (defaults to current post)
– count: (optional) number of posts to display (default: 5)
– keyword: (optional) override the keyword used for finding related posts
– template: (optional) layout template to use — default, grid, classic, compact, thumbright
– css: 1 (default) or 0 – disable default CSS if you want to fully style it yourself
– schema: 1 (default) or 0 – disable JSON-LD ItemList output for SEO schema
[init_live_search_related_ai]
Display a list of AI-powered related posts using multi-signal scoring (tags, series, title bigrams, same_keyword via ACF, category, views, comments, freshness).
Uses the same templates as [init_live_search_related_posts], so no extra styling is required.
Attributes:
– id: (optional) the post ID to find related posts for (defaults to current post)
– count: (optional) number of posts to display (default: 5)
– post_type: (optional) restrict results to one or more post types (default: post)
– template: (optional) layout template to use — default, grid, classic, compact, thumbright
– css: 1 (default) or 0 – disable default CSS if you want to fully style it yourself
– schema: 1 (default) or 0 – disable JSON-LD ItemList output for SEO schema
Filters for Developers
Init Live Search includes many filters to help developers customize behavior and output at various stages of the search flow.
Full documentation (with code samples & advanced usage): Using Filters in Init Live Search
Popular filters
init_plugin_suite_live_search_enable_fallback
Enable or disable fallback logic when few results are found.
init_plugin_suite_live_search_post_ids
Customize the array of post IDs returned from the query.
init_plugin_suite_live_search_result_item
Modify each result item before it’s sent in the response.
init_plugin_suite_live_search_results
Filter the final array of results before being returned.
init_plugin_suite_live_search_query_args
Modify WP_Query arguments for different commands.
init_plugin_suite_live_search_ai_weights
Adjust AI scoring weights for related posts.
(…and more in the full docs)
REST API Endpoints
Fully documented, lightweight, and API-first endpoints. Ideal for headless or decoupled builds.
All endpoints are under namespace: initlise/v1
Full documentation (with examples & parameters): REST API Endpoints in Init Live Search
Popular endpoints
/search?term=example
Standard search query (uses plugin settings like post types, search mode, fallback…).
/id/{id}
Fetch a post by ID (returns permalink).
/recent
Fetch the most recent posts.
/tax?taxonomy=category&term=slug-or-id
Fetch posts by taxonomy (category, tag, or custom).
/related?title=page-title&exclude=ID
Fetch posts related to the current page title.
/product?...
Fetch WooCommerce products with flexible query parameters.
(…and more in the full docs)
License
This plugin is licensed under the GPLv2 or later.
You are free to use, modify, and distribute it under the same license.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Init Live Search – AI-Powered, Related Posts, Slash Commands」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.3 | 1.4 | 1.5 | 1.6 | 1.4.1 | 1.4.2 | 1.4.3 | 1.5.1 | 1.5.2 | 1.5.3 | 1.5.4 | 1.6.1 | 1.6.2 | 1.6.3 | 1.6.4 | 1.6.5 | 1.6.6 | 1.6.7 | 1.6.8 | 1.6.9 | 1.7.0 | 1.7.1 | 1.7.2 | 1.7.3 | 1.7.4 | 1.7.5 | 1.7.6 | 1.7.7 | 1.7.8 | 1.7.9 | 1.8.0 | 1.8.1 | 1.8.2 | 1.8.3 | 1.8.4 | 1.8.5 | 1.8.6 | 1.8.7 | 1.8.8 | trunk |
延伸相關外掛(你可能也想知道)
Google for WooCommerce 》, Google Listings & Ads可讓您輕鬆地向Google平台上的購物者展示您的產品。無論您是數位廣告的新手還是市場營銷專家,您都可以通過免費和廣告來擴大您的...。
WooCommerce PayPal Payments 》PayPal 最新、功能最完備的付款處理解決方案。除了接受 PayPal 獨有的付款方式,也可接受信用卡/借記卡和本地付款方式。開啟 PayPal 付款選項或處理完整的付...。
WooCommerce Stripe Payment Gateway 》使用 Stripe 付款網關的 WooCommerce 外掛,直接在您的商店上接受 Visa、MasterCard、American Express、Discover、JCB、Diners Club、SEPA、Sofort、iDEAL、...。
WooCommerce Tax (formerly WooCommerce Shipping & Tax) 》WooCommerce Shipping & Tax 外掛可讓基本的電子商務功能如運送更加可靠,并減輕了您的網站基礎架構壓力。, 使用 WooCommerce Shipping & Tax 外掛,...。WooCommerce Legacy REST API 》總結:, - 在WooCommerce 9.0版本起,Legacy REST API將不再是WooCommerce的一部分。, - 這款外掛程式在WooCommerce 9.0及以後版本中還原了已移除的Legacy RE...。
WP Crontrol 》WP Crontrol 可以讓您查看和控制 WP-Cron 系統中正在發生的事件。從管理界面,您可以:, , 查看所有的 Cron 事件以及它們的參數、循環間隔時間、回撥函數以及...。
PDF Invoices & Packing Slips for WooCommerce 》這個 WooCommerce 外掛可以自動為您的客戶在訂單確認電子郵件中添加 PDF 發票。包括一個基本模板(額外的模板可從 WP Overnight 購買),以及修改/建立自己的...。
Variation Swatches for WooCommerce 》為 WooCommerce 產品屬性打造美麗的顏色、圖片和按鈕變化的樣式, 如何安裝 WooCommerce 變化樣式外掛程式升級可變產品, , 變化樣式是易於使用的 WooCommerce ...。
Cart Abandonment Recovery for WooCommerce – Recover Lost Sales with Automated Emails 》現在是時候停止購物車放棄行為,並找回您失去的收入了!, 研究顯示,約有60%至80%的使用者前往結帳頁面,但沒有完成購買。即使最佳優化的結帳流程也有20%的...。Pinterest for WooCommerce 》Pinterest 提供人們下一個偉大的想法。它部分收藏品,部分市場,是數百萬個分享者獲取靈感、新產品和新可能性的一站式購物平台。它就像一個視覺搜尋引擎,引...。
Google Analytics for WooCommerce 》這個外掛提供了 Google Analytics 與 WooCommerce 外掛之間的整合,您可以將推薦連結與購買關聯,並將交易資訊新增到您的 Google Analytics 資料中。它還支援...。User Switching 》這個外掛可讓您輕鬆在 WordPress 中點擊按鈕即可快速切換使用者帳戶。您會立即登出並切換成所需使用者。這對於測試環境、協助 WooCommerce 網站上的客戶或任...。
CartFlows – Checkout & Funnel Builder for WooCommerce 》#1 WooCommerce 結帳 & 漏斗建置外掛 – CartFlows, ★★★★★, 相較於其他所有的 WooCommerce 結帳選項,更多 WooCommerce 商店店主都選擇了 CartFlows。為什麼呢...。
YITH WooCommerce Quick View 》有時半途而廢是最好的:如果你正在檢視產品列表,但其圖片仍然太小,需要打開該產品頁面,等待載入,最後才能觀察你感興趣的項目。, 因此,為什麼不使用一種...。
Custom Product Tabs for WooCommerce 》此外掛擴充了 WooCommerce 功能,允許商店擁有者針對產品添加自訂選項卡。這些選項卡顯示在每個產品頁面上,出現在預設的「描述」選項卡右側。, 個別產品選項...。
