[WordPress] 外掛分享: WP Live Search

WordPress 外掛 WP Live Search 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WP Live Search」是 2015-06-14 上架。
  • 目前有 50 個安裝啟用數。
  • 上一次更新是 2015-06-24,距離現在已有 3604 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.5.1 以上版本才可以安裝。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

nphaskins |

外掛標籤

search | live search |

內容簡介

WP Live Search (beta) 是一款 WordPress 的搜索外掛,當使用者輸入查詢關鍵字時,能即時顯示相關搜尋結果。目前支援文章、頁面、多個自訂文章類型以及自訂設計模式。

此版本為實驗版,如有任何問題請在下方的 Github repo 中記錄問題。
https://github.com/bearded-avenger/wp-live-search

以下是一些文件說明。
http://bearded-avenger.github.io/wp-live-search/

將 shortcode[wp_live_search]新增到頁面或其他內容。有幾個 shortcode 屬性可以使用,如下所示:

type=””
可選項目包括posts或pages,預設為posts。您還可以傳遞type,type以搜索多個文章類型。例如,type=”recipes,books”

multi=””
預設為關閉狀態。只有當上方使用多個文章類型時,才將其設置為 true。

placeholder=””
輸入框中顯示的文字。預設為Search...。

number=””
返回的搜索結果總數。默認值為20

excerpt=”true”
顯示標題、摘要和精選圖片(如果設置)

compact=”true”
在標題小工具等中使用 WP Live Search 的簡化版本

dropdown=”true”
將搜索結果顯示為下拉菜單,而不是推動其周圍的內容。

results=””
顯示搜索結果的文字。預設為entries found。

results_style=”inside”
在較小空間中使用的樣式,可以將「entries found」顯示在輸入框內。

target=””
一個可選的目標 UL 父元素以將搜索結果發送到。例如:target="#someotherdiv"。

以下是幾個示例:

預設用法:
[wp_live_search]

在標題小工具中使用:
[wp_live_search compact=”true” dropdown=”true” results=”found” results_style=”inside”]

搜索多個文章類型:
[wp_live_search multi=”true” type=”posts,page”]

原文外掛簡介

WP Live Search (beta) is a search plugin for WordPress that returns results as the user types for what they are looking. It currently supports posts, pages, post types, including multiple post types, and design modes.
This is very much a working prototype, so please log any issues you find on the Github repo below.
https://github.com/bearded-avenger/wp-live-search
Here’s some documentation.
http://bearded-avenger.github.io/wp-live-search/
Add the shortcode [wp_live_search] to a page or something. There’s a few shortcode attributes that you can use, and are as follows:
type=””
Your choices are posts or pages. Defaults to posts. You can also pass type,type to search multiple post types. For example type=”recipes,books”
multi=””
By default this is turned off. Set this to true only if you’re using multiple post types above.
placeholder=””
The text displayed in the input. Defaults to Search....
number=””
Total search result to return. Default is 20
excerpt=”true”
Show the excerpt along with the title and featured image (if set)
compact=”true”
Makes a tiny WP Live Search for use in header widgets and such
dropdown=”true”
Display search results as a drop-down instead of pushing down the content around it
results=””
The text displayed for the results. Defaults to entries found.
results_style=”inside”
Displays the “entries found” inside of the input area, useful for using in areas like header widgets where space is minimal.
target=””
An optional target UL parent to send the search results to. Example target="#someotherdiv".
Here are a couple examples:
Default Usage:
[wp_live_search]
Use in Header Widget:
[wp_live_search compact=”true” dropdown=”true” results=”found” results_style=”inside”]
Search through multiple post types:
[wp_live_search multi=”true” type=”posts,page”]

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP Live Search」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 0.7.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Search Regex 》Search Regex 提供了強大的搜尋和替換函數,可用於 WordPress 文章、頁面、自定義文章類型等數據源的搜尋與替換,這些功能超越了標準搜尋功能,讓你可以搜尋...。
  • String locator 》當你在開發主題和外掛時,你經常會注意到某些文字被硬編碼在文件中,你需要對其進行修改,但你不知道該主題或外掛的名稱,更不知道要查找哪個文件。, 你可以...。
  • Search & Replace 》, 注意:此外掛未進行維護。, , 程式碼會繼續留在 SVN 和 Github 上,如果您有興趣。, 使用「Search & Replace」工具,您可以搜尋任何內容並以其他內容取...。
  • Relevanssi – A Better Search 》Relevanssi 取代了 WordPress 標準搜尋引擎,提供更好的搜尋體驗、豐富的功能和可配置的選項。使用 Relevanssi 會獲得更好的搜尋結果和呈現方式,你的使用者...。
  • Ivory Search – WordPress Search Plugin 》Ivory Search 是一個易於使用的 WordPress 高級搜尋插件。, 它可以增強預設的 WordPress 搜尋功能,還可以讓您創建新的自定義搜尋表單。, 使用 Ivory Search...。
  • Real-Time Find and Replace 》這個外掛允許你在頁面產生時,動態地替換主題和其他外掛的代碼和文字為你選擇的代碼和文字,然後再傳送頁面給使用者的瀏覽器。, 由於查找和替換是實時進行的...。
  • Ajax Search Lite – Live Search & Filter 》Ajax Search Lite 是一款 WordPress 的即時搜尋外掛程式。這款響應式的即時搜尋引擎將提供一個使用者友好的 AJAX 驅動搜尋表單 - 即時搜尋欄。你也可以使用分...。
  • Advanced Woo Search 》說明:, , Advanced Woo Search - 功能強大的 WooCommerce 搜索插件,支援 AJAX 搜索和搜尋結果頁面顯示。, 插件官方網站 | 功能列表 | 文檔, 主要功能, , 產...。
  • Search Exclude 》這個外掛能夠讓你勾選該頁面、文章或其他內容的複選框來將其排除在 WordPress 搜尋結果之外。, 支援快速和批次編輯。, 在外掛設置頁面中,您也可以看到所有被...。
  • Customizer Search 》是否使用使用 WordPress 自訂樣式主題?那你一定會喜歡這個外掛!不再花時間找尋設定,只需要搜尋你想要的設定項目,就可以立即前往該設定。, 適用於所有 Wor...。
  • SearchWP Live Ajax Search 》此 WordPress 外掛不需要SearchWP,但如果有的話就會使用它。在 searchwp.com 可以找到完整文檔。, 歡迎在 GitHub 上貢獻您的力量!https://github.com/jchri...。
  • Search & Filter 》Search & Filter 是一款簡單的 WordPress 搜尋和篩選外掛程式,是 WordPress 搜尋框的進階版。, 您可以透過類別、標籤、自訂分類、文章類型、發佈日期或...。
  • Better Find and Replace 》p>這個外掛提供了一個簡單的方式,可以搜尋目標字詞並且以你想要的字詞替換它。搜尋與替換的過程發生在網站在瀏覽器中呈現之前,不會影響到任何其他檔案或資...。
  • Disable Search 》此外掛可防止 WordPress 處理和允許任何來自網站前端的搜尋請求。具體來說,此外掛:, , 若主題使用標準的 get_search_form() 函式來顯示搜尋表單,則無法顯...。
  • ACF: Better Search 》此插件可為 WordPress 搜尋引擎添加額外功能,讓您可以在 Advanced Custom Fields 指定的欄位中搜尋內容。, 一切都是自動運作的,您無需添加任何額外的程式碼...。

文章
Filter
Apply Filters
Mastodon