Wordpress Plugin for Google Search
->
There are few articles that describe how Wordpress users can have an onsite Google search results to be displayed on their own blog. It can be fairly easy to do that with new pages and template, as featured by this excellent article at LiewCF and here.
I had once tried the same method, except that new page/template is not necessary;
1. Get current theme single.php file.
2. Remove the posts loop.
3. Save it as wp-root/google-search/index.php
4. Insert both search form and result codes into that file.
Anyway, I believe another simple method is possible, for example by using a plugin. That’s why I wrote a simple plugin for this purpose so that very little knowledge on HTML/PHP is required (perhaps not at all).
So how to have an OnSite Google Adsense Search Results on your own blog the easier way?
1. Download MightySearch plugin and activate it.
2. Get your Adsense Setup - get the code, both Search Form and Search Result codes.
3. Paste the codes into MightySearch configuration page (dashboard> options> mightysearch).
4. Create a new page (post slug should be the same URL as Step #2), for example “Google Search”, and it’s URL is http://yourdomain.com/google-search/ .
5. In that new page, just type <–mightysearch–> , now you are done with the search page.
Test your page if the result is displayed correctly.
This is a screenshort of Google search results on my page;

p/s: I notice that sometimes you may get a long whitespace under the result, the same goes to everyone else. Some workarounds have been discussed for example resizing the iframe, but I will write about it some times later ![]()



September 24th, 2006 at 9:47 pm
thanks for the plug.
Please note that we are NOT allowed to modify any bit of AdSense code.
September 24th, 2006 at 10:18 pm
thanks for the reminder.
October 20th, 2006 at 10:05 am
thanks. it’s a very useful plugin.