Linux 软件免费装

Server-Side Google Search

开发者 Aptivate
更新时间 2015年8月18日 00:59
PHP版本: 3.7 及以上
WordPress版本: 4.3
版权: GPLv2 or later
版权网址: 版权信息

标签

Google Google Search Server-Side Google Search Google Custom Search SCE GCSE Wordpress Google Search

下载

1.0.0 1.0.1 1.0.2 1.0.3

详情介绍:

This plugin adds Google Custom Search to your website, but unlike other plugins operates on the server side, thus eliminating the need for JavaScript and keeping the page size small. The admin interface is based on that used by the [WP Google Search plugin] (https://wordpress.org/plugins/wp-google-search/) The interface with the Google API is based on Digital Collection Search by Jason Clark for Montana State University. Available languages

安装:

  1. Upload the plugin to the /wp-content/plugins/ directory.
  2. Activate it through the Plugins menu in WordPress.
  3. Register your Google Custom Search Engine and get your Google Search Engine ID and API key here: https://www.google.com/cse/
  4. Enable the plugin and enter the Google Search Engine ID and API key (Settings -> Server-Side Google Search)
  5. If necessary, add the default search widget to the sidebar where you want to see it
  6. Put the Server-Side Google Search widget on the sidebar where you want to see the results
  7. Your theme will need to override the page that displays the "Nothing Found" message when the search results are displayed.
Example of how to add custom metadata to search results In your header.php: ` ` In your functions.php: ` function add_modified_date( $metadata, $item_data ) { return $metadata . sprintf( 'Last modified on: %s', $item_data['pagemap']['post_metadata'][0]['modified_date'] ); } add_filter( 'ssgs-add-post-search-metadata', 'add_modified_date', 10, 2 ); `

升级注意事项:

1.0.0
  • First version

更新日志:

1.0.3 1.0.2 1.0.1 1.0.0