Search with Google

外掛說明

This plugin will replace the WordPress default search query with server-side results from Custom Search Site Restricted JSON API. This replacement is done on the WordPress back-end, so results appear as normal within WordPress search.

環境需求

  1. Google API 金鑰
  2. Google 程式化搜尋的搜尋引擎 ID

Setup

  1. 取得 Google API 金鑰。API 金鑰是 Google 識別網站專屬用戶端的方式。
  2. 取得 Google 程式化搜尋的搜尋引擎 ID。在 Google 服務的相關設定中,限制搜尋引擎僅搜尋一個目標網站。
  3. 在 WordPress 控制台中,前往外掛設定區段設定 [API 金鑰] 及程式化搜尋的 [搜尋引擎 ID]。控制台→[設定]→[閱讀]→[Search with Google 設定]

注意事項

  1. Custom Search Site Restricted JSON API can show only 100 search results for the query.
  2. A result page can have maximum of 10 results.

我們正在招聘員工

加入 rtCamp,我們致力於提供高效能的企業級 WordPress 解決方案。

安裝方式

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Follow “Setup” instructions in ReadMe to configure credentials from Google Developers Console.

常見問題集

回報程式碼錯誤 🐞

在提出問題之前,請先查看現有的問題是否正在解決或會在未來版本完成修正。

如果仍須提出問題,請盡你所能提供完整的詳細資料,如果可能的話,請包含清楚、能夠重現問題步驟。

建立提取要求

Want to contribute a new feature? Start a conversation by logging an issue.

Once you’re ready to send a pull request, please run through the following checklist:

  1. Browse through the existing issues for anything related to what you want to work on. If you don’t find any related issues, open a new one.

  2. 建立分支專案。

  3. Create a branch from develop for each issue you’d like to address and commit your changes.

  4. Push the code changes from your local clone to your fork.

  5. Open a pull request and that’s it! We’ll respond with feedback as soon as possible (Isn’t collaboration a great thing? 😌)

  6. Once your pull request has passed final code review and tests, it will be merged into develop and be in the pipeline for the next release. Props to you! 🎉

使用者評論

2023 年 6 月 7 日
This plugin does not work and never could have, since the only file is just a placeholder. A total waste of time. It should be removed from the repository immediately!
2021 年 7 月 9 日
Provided you know how to get your API Key and Search engine ID from Google, this couldn't be easier to set up. Compare results with the results in the "Public URL" page at cse.google.com with the plugin switched on or off, and if your site is well SEO-optimised, you'll see much better results with it switched on and properly configured.
2020 年 12 月 8 日
Doesn't know whether this plugin works after installation and no support.
閱讀全部 3 則使用者評論

參與者及開發者

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

參與者

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

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

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Initial release.