Plugin info

Total downloads: 2,985
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 4
Last updated: 8/28/2012 (4922 days ago)
Added to WordPress: 8/24/2012 (13 years old)
Minimum WordPress version: f
Tested up to WordPress version: 3.4.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 4922 days ago

20/100

Is Google XML Site Search abandoned?

Possibly abandoned (last update 4922 days ago).

Compatibility

Requires WordPress: f
Tested up to: 3.4.2
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Google Keyword Suggest
Rating 5.0/5 (4 reviews)Active installs 2,000
Multipart robots.txt editor
Rating 3.3/5 (3 reviews)Active installs 2,000
SEO Engine
Rating 4.9/5 (35 reviews)Active installs 1,000
Magic robots.txt
Rating 5.0/5 (1 reviews)Active installs 1,000
Meta Description
Rating 3.7/5 (3 reviews)Active installs 500
Instant Search & Suggest
Rating 4.4/5 (12 reviews)Active installs 300

Description

This plugin provides search functionality for your WordPress installation, through Google Site Search (aka Google Custom Search). It uses Google’s XML API, and thus requires an account that has access to it (ie you need to pay for it).

The plugin hooks in to the standard WordPress search form, so there is no need to change it (standard search widgets etc will still work). The plugin provides a basic template for the search results, but you can easily make your own if you wish to customize the output.

  • Read more about Google Custom Search here: http://www.google.com/cse/
  • Read more about the XML API here: https://developers.google.com/custom-search/docs/xml_results

This plugin is not developed or endorsed by Google.

Customizing

If you wish to customize the search result page, create a template named ‘google-custom-search.php’ in your theme. Refer to the plugin’s ‘default-template.php’ for available template functions. The functions mimic the way that The Loop works, so it should feel familiar.

For advanced users who want even more control of the output of the plugin, it is also possible to transform the response from the XML API with an XSLT style sheet. To do this, create a file called ‘google-custom-search.xsl’ in your theme. Please refer to Google’s documentation for the XML API (https://developers.google.com/custom-search/docs/xml_results) for the format of the response.

If you have a custom search form, you need to change the name-attribute of your search field to “gcs” (ie name=”gcs”) and make sure that the form action is set to the root of your site. Otherwise the search query will not be handled by this plugin.

Installation

  1. Upload the folder ‘google-xml-site-search’ to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Specify your Search Engine Unique ID through ‘Settings’ -> ‘Google XML Site Search’
  4. Done!

If you wish to customize the output or the layout of the search page, keep reading under “Customizing”

Frequently Asked Questions

Where do I find the Search Engine Unique ID?

You can find it in the Google Custom Search control panel for your search engine. Log in here: http://www.google.com/cse/

I have a Google Custom Search account, can I use this plugin?

To have access to the XML API you currently need a paid Google Custom Search account. If you have one, this plugin is for you!

Review feed

No reviews available

Screenshots

  1. Settings for the plugin.

    Settings for the plugin.

Changelog

1.1 (2012-08-27)

  • Fixed a bug that made the plugin not work in some (possibly all) cases. Sorry about that.
  • Added localized Next/Previuos links in the default navigation HTML. Swedish translation is included in the plugin.
  • Fixed some deprecated syntax that caused errors with newer versions of PHP

1.0 (2012-08-23)

  • The initial version of this plugin