Google coop and Wordpress Setup Howto

December 10th, 2006

Google coop is a natural companion to Wordpress (or other types of) blogs. Here's how I setup Google coop on the Informed Banking Blog:

  1. Setup Google coop search engine, following their instructions

  2. Create a new page template in Wordpress - I copied wordpress/wp-content/themes/default/page.php to ./google_search_coop.php, but you can just create a new file just as easily:

cd $your-wordpress-directory

cd wp-content/themes/

cd $your-current-theme

touch google_search_coop.php
  1. Edit the page template so that you can edit it in the Wordpress Theme Editor:

Template Name: Google Coop Search Setup*/?>?
  1. You'll probably want to add your theme's header and footer:
<? php get_header(); ?>


<? php get_footer(); ?>
  1. Go back to Google coop, choose your custom search engine, then select control panel, click code, and the second option down is "Search box and search results code for your website", expand that, then enter the target url (I used my blog URL)
  1. Then click Save Changes, and then copy and paste the code from the text areas, and paste them into your new Wordpress page template, between the header and footer snibbets.

  2. This is the key step: add a new page using the Wordpress "Write Page" tab, save an empty page using your new page template (expand the Page Template tab on the right hand side, and you should see your new template).

  3. Once you've created your new page, click on "View page" and note the URL. If it has "?page_id=some_number", then you'll have to add that as a hidden input variable in the Google coop form. In my case, this is the element I use:

<input type="hidden" name="page_id" value="16"/>

I'm not sure if that last step is required, but I did it and it works. :-)

Last but not least, the working example:

Informed Banking Google coop Search Engine


Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022