WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Google XML Site Search

A search plugin that uses the XML API of Google Site Search (aka Google Custom Search).

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.

Requires: 3.3 (may work with older versions, not tested) or higher
Compatible up to: 3.4.2
Last Updated: 2012-8-28
Downloads: 1,589

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

50,2,1