
內容簡介
這個外掛提供兩個功能:
網站搜尋表單及其結果區塊
相關項目清單區塊
靜態相關項目區塊
在任何地方添加網站搜尋表單及其結果區塊。
這個自訂區塊顯示關聯度最高的帖子標題、標籤和類別。每當你在帖子上儲存更改時,外掛也會將搜索結果儲存到 WordPress 資料庫中,因此前端沒有額外的 API 呼叫。
為了套用最新的相關文章到文章中,你應該編輯文章並重新儲存變更,感謝這一點,它具有相當大的優勢:最少的 API 呼叫。
此外,你可以處理任何內容,例如關鍵字篩選或要顯示的文章數量。
即時搜尋區塊
添加相關帖子清單區塊。
這個自訂區塊顯示網站搜尋表單及其結果頁面。簡單易用的即時搜尋區塊,可以完全自定義(結果數量、清單內容和其表單風格)。
索引資料
安裝 WP Search with Algolia(https://wordpress.org/plugins/wp-search-with-algolia/)
從 Algolia 搜尋取得 API 金鑰
將資料索引到Algolia上。
完成
嵌入搜尋表單
在 WordPress 儀表板的外掛頁面上安裝或上傳此外掛
在 Setting => Reading 選單中輸入 Algolia 的應用程式 ID/API 金鑰。
在文章或頁面中添加靜態相關項目和即時搜尋區塊。
修改文章中的建議數量或索引。
保存更改後發布。
外掛標籤
開發者團隊
② 後台搜尋「Search with Algolia Instantsearch Blocks」→ 直接安裝(推薦)
原文外掛簡介
This plugin provides two features:
Site search form and its result block.
List of related items block.
Static related items block
Add site search form and its result block in anywhere
This custom block displays most related posts with title, tags and categories. Every time you save changes on the post, the plugin also saves search results to WordPress database, so no additional API calls occur on the frontend.
Applying the latest related posts to the posts, you should edit a post and re-save changes, and thanks for this, it has a considerable advantage: the minimum API calls.
Also, you can handle anything, such as keyword filtering or numbers of posts to display.
Instant search block
Add a list of related posts block.
This custom bock displays the site search form and its result page. Simple and easy to use instant search block which is fully customisable (numbers of result, contents of list and its form style ).
Indexing data
Install WP Search with Algolia ( https://wordpress.org/plugins/wp-search-with-algolia/ )
Get API keys from Algolia search
Indexing data to Algolia
That’s all
Embedding search form
Install or upload this plugin on the plugin page in WordPress dashboard
Input Algolia’s App ID/API Key in Setting => Reading menu.
Add Static Related Items and Instantsearchblock to the posts or pages.
Modify numbers of suggests in the posts or indexing
Save changes and publish it.
