A search plugin that uses the XML API of Google Site Search (aka Google Custom Search).
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: 3 years ago
Active Installs: 100+
Got something to say? Need help?