[WordPress] 外掛分享: Simple Ajax Search

WordPress 外掛 Simple Ajax Search 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Simple Ajax Search」是 2018-06-20 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2019-11-16,距離現在已有 1996 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.2.4 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

sumapress | pablocianes |

外掛標籤

ajax | blog | search | seeker | search engine |

內容簡介

這個外掛可以輕鬆地創建一個動態 Ajax 搜尋引擎,供您的網誌使用。

要設置此搜尋引擎,請使用以下[短碼]:

[sas-input]

在您希望設置動態搜尋的輸入元件位置中撰寫這個短碼,您將獲得:
* 一個輸入欄位,您可以在 WordPress 引擎中搜尋博客的文字。
* 若干類別以根據您勾選的篩選方式進行搜索。預設全部勾選。

如果您希望,您可以使用以下屬性來自訂此短碼:
* [sas-input blank="true"]:如果您希望在每個搜尋結果中開啟新的視窗,預設為 false。
* [sas-input dashicons="dashicons-admin-post"]:更改每個連結的圖示的範例。
* [sas-input headings="#29AAE3"]:這是標題的預設顏色,但您可以在此處放置任何您想要的內容。
* [sas-input checked="#F8931F"]:篩選搜尋結果的預設勾選顏色。
* [sas-input unchecked="#ccc"]:篩選搜尋結果的預設未勾選顏色。
* [sas-input not_found="Sorry but there are no results for your search."]:當沒有搜尋結果時顯示的文字。

此外,您可以通過短碼的內容更改輸入欄位的佔位符。這是預設值:
* [sas-input]在此處輸入您的搜尋內容…[/sas-input]

舉個例子:[sas-input blank="true" dashicons="dashicons-welcome-write-blog" headings="#ccc"]輸入您的內容…[/sas-input]

註: Dashicons 的程式碼

[sas-result]

使用這個短碼,外掛可以使用 Ajax 引擎實時顯示搜尋輸出。您可以在屏幕截圖中看到此結構。

對於此短碼,您不需要提供任何屬性,但是您可能希望添加一些其他 CSS,以實現最佳的與您的佈景主題集成。

簡單來說,只需在您需要搜尋的輸入位置中輸入[sas-input] ,在需要顯示結果的位置中輸入[sas-result]。您通常會將它們放在一起,但您可以自行決定,例如在側欄中使用條件性小工具進行第一個輸入。

回饋和支援

我很樂意收到您的回饋以改進此外掛。
如果您喜歡,請通過支援論壇讓我知道,並請務必留下評論。

您也可以在我的個人網站Pablo Cianes上直接與我聯繫,也可以訪問 Simple Ajax Search 的 GitHub,在那裡您可以找到此外掛的所有開發代碼。

我希望這對您有用,並期待閱讀您的評論! 😉謝謝!

原文外掛簡介

With this plugin you can create very easily a dynamic ajax search engine of your blog.
For setup this search engine use the followings [shortcodes]:
[sas-input]
Write this shortcode where you want the input components for the dynamic search, and you get:
* One input field where write words to search into the blog with WordPress engine.
* Several categories to filter the search depending what you checked. By default all checked.
If you want you have some attributes to customize this shortcode:
* [sas-input blank="true"] if you want to open in new window each link of the results. It’s false by default.
* [sas-input dashicons="dashicons-admin-post"] this is an example to change the icon of each link.
* [sas-input headings="#29AAE3"] this is the color by default for headings, but you can put here what you want.
* [sas-input checked="#F8931F"] this is the color by default for checked categories to filter the search.
* [sas-input unchecked="#ccc"] this is the color by default for unchecked categories to filter the search.
* [sas-input not_found="Sorry but there are no results for your search."] put here the text you want to show when there are no results.
Also you can change the placeholder of the input field with the content of the shortcode. This is the value by default:
* [sas-input]Write here your search...[/sas-input]
An example: [sas-input blank="true" dashicons="dashicons-welcome-write-blog" headings="#ccc"]Write here...[/sas-input]
Note: Code of dashicons
[sas-result]
With this one the plugin show the output of the search in real time with the ajax engine. You can see the structure of this in the screenshots.
You don’t need put for this shortcode any attribute, but could be you want to add some aditional css for the best integration with your theme.
In summary just put [sas-input] where you want the input for the search, and put [sas-result] where you want the results. You will usually put them together, but you can decide how, like use a conditional widget into a sidebar for the first one.
Feedback and support
I would be happy to receive your feedback to improve this plugin.
Please let me know through support forums if you like it and please be sure to leave a review..
Also you can contact me on my personal page Pablo Cianes or even visit Github of Simple Ajax Search where you can find all the development code of this plugin.
I hope it is useful for you and look forward to reading your reviews! 😉 Thanks!

各版本下載點

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

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


1.0.0 | 1.0.1 |

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

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon