WP Extended Search

外掛說明

WP Extended Search 是一款輕量化且功能強大的搜尋外掛。

使用這款外掛,網站管理員便能自訂 WordPress 的搜尋功能,透過後台管理區的設定,這個外掛便可搜尋內容中繼資料、作者名稱、分類、標籤或自訂分類法。網站管理員還能控制 WordPress 預設行為,藉以搜尋文章標題、文章內容及文章內容摘要。

除了自訂預設搜尋行為外,網站管理員還能建立多個搜尋設定,並將這些設定指派制訂搜尋表單。自訂搜尋表單可以是小工具、短代碼、PHP 函式或 HTML。

外掛特色

  • 可搜尋指定的中繼索引鍵
  • 可搜尋分類、標籤或自訂分類法
  • 可搜尋作者顯示名稱
  • 搜尋範圍可包含或排除任何公開內容類型
  • 可控制是否要搜尋標題、內容、內容摘要或全部欄位
  • 與 WooCommerce 相容,可搜尋產品 SKU、內容、可變商品及自訂欄位等項目
  • 可建立不限數量的搜尋設定,並與自訂搜尋表單搭配使用
  • 可使用小工具、短代碼或 PHP 函式建立搜尋表單,也可以搭配自訂的 searchform.php
  • 依據設定的指定日期,在搜尋結果中排除較舊的內容
  • 可自訂搜尋結果頁面的文章顯示數量
  • 可自訂搜尋關鍵字間的 SQL 關聯 (AND/OR)
  • 可自訂搜尋結果排序方式
  • 可控制搜尋查詢要求需要完全相符或部分相符
  • 依據 MIME 類型限制附件搜尋結果,例如僅在搜尋結果中顯示 PDF 檔案
  • 多語言本地化支援
  • 與 WPML 相容

實用連結

螢幕擷圖

  • WP Extented Search 設定頁面
  • 新增/刪除設定
  • 編輯設定名稱

安裝方式

  • 前往 [控制台] 的 [外掛]→[安裝外掛],然後搜尋「WP Extended Search」並安裝。
    或…
    下載 WP Extended Search 的安裝套件 ZIP 壓縮檔,然後將解壓縮所得的目錄及其全部檔案,透過 FTP 上傳至 /wp-content/plugins 目錄。如有疑問,請參考官方說明
  • 啟用外掛,並前往 [設定]→[Extended Search] 進行符合使用需求的設定。

常見問題集

這個外掛是否與 WooCommerce 相容?

是,這個外掛與 WooCommerce 相容。WooCommerce 啟用後,這個外掛便會出現一項額外 [產品搜尋最佳化] 設定並預設啟用這項設定,搜尋結果會使用預設 WooCommerce 範本或佈景主題提供的相關範本。

如何新增搜尋表單?

網站管理員可以使用小工具、短代碼及 PHP 函式顯示搜尋表單,也可以將隱藏的 HTML 欄位新增至現有的 searchform.php 範本中。

是否能使用現有的預設搜尋表單小工具?

是,可以。網站管理員可以修改全域設定以更改預設搜尋表單的結果。僅有網站管理員覺得網站需要多於一個搜尋條件時,才會需要額外的搜尋表單。

是否可以使用這個外掛將指定搜尋表單新增至網站,並保留 WordPress 預設搜尋功能?

是,可以。請前往外掛設定頁並選取 [設定名稱] 的 [全域搜尋],便可以看到停用全域搜尋的按鈕。停用全域搜尋後,網站管理員便可以新增具備特定搜尋條件的搜尋表單。

如何自訂搜尋表單?

網站管理員可以將對應的自訂 CSS 程式碼新增至佈景主題中,也可以在小工具、短代碼及 PHP 函式中設定 CSS 類別,藉以修改搜尋表單的樣式。此外,網站管理員可以在佈景主題中為每個搜尋設定新增完整的自訂範本。

使用者評論

2024 年 12 月 11 日
Fantastic plugin, got me out of a serious issue I was having with search functionality. Works flawlessly, highly recommend. Thank you…
2024 年 7 月 13 日 1 則留言
Thanks works super good, keep up the great work
2024 年 5 月 27 日 1 則留言
I have been searching for over a week for a plugin like this. Its awesome!
2023 年 11 月 9 日 1 則留言
Be sure to dig into the individual settings to ensure you can include things like tags, but also.. portfolio tags! I just had a few minutes where I thought it was not working until I clicked the right settings, then bam, totally fine. Saved me $100 bucks from buying WP Search. This integrates seamlessly with the standard Wordpress search, and in my case I am using the Avada theme. I could not be happier to have all this power and no coding!
閱讀全部 71 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WP Extended Search〉的開發相關工作。

參與者

〈WP Extended Search〉外掛目前已有 3 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈WP Extended Search〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.2 – 2024-11-28

  • Fixed issue with YITH badges management plugin.
  • Fixed issue with WP Query loop block.
  • Removed select2 CDN.
  • Fixed issues with WP 6.7
  • Other minor improvements.

2.1.2 – 2023-01-05

  • Fixed XSS vulnerability in search form.
  • Fixed missing text domains and MO file loading issue.
  • Added option to search in WC product variations. Ref https://wordpress.org/support/topic/search-not-showing-single-product-variations/

2.1.1 – 2022-03-19

  • Fixed recommendations notice issue with cache plugins.
  • Minor fixes.

2.1 – 2022-03-13

  • Added new feature to limit attachments by mime type.
  • Fixed issue with add to cart link on search results page.
  • Other minor improvements.

2.0.3 – 2021-08-04

  • Fixed search issue in WC settings > Advanced tab
  • Fixed fatal error with WP 5.8 on new widget screen (Still not compatible with block-based widgets.)

2.0.2 – 2021-04-11

  • Fixed issue with WooCommerce pages.
  • Fixed issue with backend REST requests.
  • Added Select2 for admin pages.

2.0.1 – 2020-12-18

  • Fixed errors in dashboard for non-admin users.

2.0 – 2020-12-11

Upgrade Notice
2.0 went through code refactoring and major feature updates. Please make a complete site backup before upgrading.

  • Added new feature to add multiple search settings.
  • Added WooCommerce product search support.
  • Complete code refactoring.

1.3.1 – 2020-07-25

  • Fixed issue with ACF relationship post field admin search.
  • Fixed issue with Elementor admin search.
  • Added support for new query variable disable_wpes to disable WPES search.

1.3 – 2019-10-21

  • Fixed media search issue
  • Fixed conflict with search when adding new menu item in backend
  • Added setting link in plugin action links
  • Added feature to modify search results order
  • Added feature to match search query exactly or partially

1.2 – 2018-08-17

  • Fixed bbPress forum posts dissappear
  • Fixed issue with Ajax calls
  • Added feature to control search in post excerpt
  • Added compatibility with WPML
  • Added new filter wp_es_terms_relation_type
  • Updated wpes_posts_search filter. Now you can access $wp_query object as a second argument

1.1.2 – 2016-06-06

  • Fixed media library search is not working when plugin is active. Thanks @gazettco
  • Fixed escaping issue in SQL query. Thanks again @brurez
  • Dropped support of WP version older than 4.0

1.1.1 – 2016-01-26

  • Added feature to support Ajax calls
  • Fixed text domain issue
  • Fixed suppress_filters issue. Thanks @brurez

1.1 – 2015-06-21

  • Added feature to search in post author name
  • Added feature to customize number of posts per search results page
  • Added feature to control SQL query relation between search terms
  • Added new filters in settings wpes_meta_keys, wpes_tax and wpes_post_types

1.0.2 – 2015-01-11

  • Added support for post_type parameter in URL
  • Exclude old content from search results

1.0.1 – 2014-10-03

  • Fixed taxonomy table join issue
  • Added new filters wpes_meta_keys_query, wpes_tax_args, wpes_post_types_args, wpes_enabled, wpes_posts_search
  • Internationalized plugin.

1.0 – 2014-09-14

  • First Release