外掛說明
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.
環境需求
Setup
- 取得 Google API 金鑰。API 金鑰是 Google 識別網站專屬用戶端的方式。
- 取得 Google 程式化搜尋的搜尋引擎 ID。在 Google 服務的相關設定中,限制搜尋引擎僅搜尋一個目標網站。
- 在 WordPress 控制台中,前往外掛設定區段設定 [API 金鑰] 及程式化搜尋的 [搜尋引擎 ID]。
控制台→[設定]→[閱讀]→[Search with Google 設定]
。
注意事項
- Custom Search Site Restricted JSON API can show only 100 search results for the query.
- A result page can have maximum of 10 results.
我們正在招聘員工
加入 rtCamp,我們致力於提供高效能的企業級 WordPress 解決方案。
安裝方式
- Upload
plugin-name.php
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- 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:
-
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.
-
建立分支專案。
-
Create a branch from
develop
for each issue you’d like to address and commit your changes. -
Push the code changes from your local clone to your fork.
-
Open a pull request and that’s it! We’ll respond with feedback as soon as possible (Isn’t collaboration a great thing? 😌)
-
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! 🎉
-
使用者評論
參與者及開發者
變更記錄
1.0
- Initial release.