這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Google CSE

外掛說明

This is not another iframe embed or AJAX result listing plugin. Instead search results from your Google Custom Search Engine is served via WordPress search listing. No need to customize your theme or search box.

You’ll need to get an Google API key and a Google Custom Search Engine ID for it to work.

Features

  • Search results sorting by relevance
  • Works with all post types
  • Multisite & network support

Check out the GitHub repo for the latest development on this plugin.

Credits

Roadmap

螢幕擷圖

  • Search Results
  • Settings

安裝方式

  1. Place the plugin (google-cse/ directory) in the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Enter and save your Google API key and Google Custom Search Engine ID.
  4. You’re done, celebrate with a cup of coffee?

If you want to use images from the Google result in your search result (search.php) use $post->cse_img for image URL.

使用者評論

2017 年 2 月 8 日
Hi. I get this ERROR: "Custom Search API" service isn't enabled in the APIs Console while Custom Search API is enabled. please help me to fix this problem and i will change the rating. thank you
閱讀全部 14 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0.7

  • Added support for Phrase Search.

1.0.6

  • Excluded admin from search hook

1.0.5

  • Added Settings link to Plugins index
  • Added option for disabling post matching

1.0.4

  • Fixed memory leak caused by the query used to fetch posts by url.
  • Fixed post variables WordPress was looking for.
  • Fixed images returned by search results playing nicely.

1.0.3

  • Added in featured images from Google results (use $post->cse_img for image URL)
  • Fixed pagination bug

1.0.2

  • Added more descriptive error messages to admin
  • Disabled SSL check for www.googleapis.com

1.0.1

  • Using native WordPress methods for remote requests

1.0

  • Settings
  • Search result cache