[WordPress] 外掛分享: Search with Google

首頁外掛目錄 › Search with Google
WordPress 外掛 Search with Google 的封面圖片
100+
安裝啟用
★★★☆☆
3/5 分(4 則評價)
324 天前
最後更新
問題解決
WordPress 4.8+ PHP 7.4+ v1.2.3 上架:2020-10-18

內容簡介

這個外掛將會使用自訂搜尋網站限制JSON API的伺服器端結果來替代 WordPress 預設的搜尋查詢。這個替代會在 WordPress 後台進行,所以在 WordPress 搜尋中顯示的結果與平常一樣。

需求

Google API 金鑰
可程式化搜尋引擎 ID

設置

獲取 Google API 金鑰。API 金鑰是用來將您的客戶端識別為 Google 的一種方式。
獲取可程式化搜尋引擎 ID。在 Google 設置中,限制搜尋引擎只搜尋您的一個網站。
在 WordPress 後台中,在外掛設置中設置 API 金鑰和可程式化搜尋引擎 ID。 儀表板 > 設定 > 閱讀 > 使用 Google 搜尋設定。

注意事項

自訂搜尋網站限制JSON API 只能顯示查詢的前 100 個搜尋結果。
一個結果頁最多只能有 10 個結果。

順帶一提,我們正在招人!

加入 rtCamp,我們專注於提供高效能的企業WordPress 解決方案

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Search with Google」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin will replace the WordPress default search query with server-side results from either the Custom Search Site Restricted JSON API or the Custom Search JSON API. You can make your selection within the settings > Reading > Search type. This replacement is done on the WordPress back-end, so results appear as normal within WordPress search.
Requirements

Google API Key
Programmable Search engine ID

Setup

Get Google API key. An API key is a way to identify your client to Google.
Get Programmable Search engine ID. In Google settings, restrict the Search engine to only search for your one site.
On WordPress dashboard, set API Key and Custom Search Engine ID in the plugin settings. Dashboard > Settings > Reading > Search with Google Settings.
Select the search type from Custom Search Site Restricted JSON API or Custom Search API. (Refer Notes section for more details)

Notes

Custom Search Site Restricted JSON API can show only 100 search results for the query.
A result page can have maximum of 10 results.
Assistance for Custom Site Restricted Search JSON API is scheduled to cease as of December 18, 2024. Read more. Due to this modification, we are introducing an opt-in feature that enables the use of solely the Custom Search API, as opposed to the Custom Site-restricted Search API. This will allow you to continue using the Custom Search API after December 18, 2024.

BTW, We’re Hiring!
Join us at rtCamp, we specialize in providing high performance enterprise WordPress solutions

文章
Filter
Mastodon