Plugin Directory

More from Google

Easily embed Google search results within your WordPress site, with the More from Google plugin.

Download Version 0.0.2

Installing With Themes That Support More From Google

  1. copy the more-from-google directory to your wp-contents/plugins directory.
  2. Activate the More from Google plugin in your plugins administration page.
  3. When editing your posts, add a search term in the 'Google Search Term' field.

Installing With Themes That Don't Support More From Google

  1. In the theme you are using, make sure the id of the search form is searchform and add the following code within the search form:

    if( function_exists( 'mfg_search_inputs' ) ) {
        mfg_search_inputs();
    }
    

    for instance, in the default theme, you would edit searchform.php and change

    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
    <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>
    

    to

    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
    <?php if( function_exists( 'mfg_search_inputs' ) ) {
        mfg_search_inputs();
    }?>
    <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>
    
  2. In the theme you are using, add the following code to the end of the search page:

    if( function_exists('mfg_show_results') ) {
        mfg_show_results();
    }
    

    for instance, in the default theme, you would edit search.php and change

    <?php endif; ?>
    
    </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    

    to

    <?php endif; ?>
    <?php if( function_exists( 'mfg_search_inputs' ) ) {
        mfg_search_inputs();
    }?> 
    </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    
  3. In the theme you are using, edit the search results page and the following condition to the have_posts if statement:

    (!function_exists('mfg_show_wordpress_search_results') 
        || mfg_show_wordpress_search_results())
    

    for instance, in the default theme, you would edit search.php and change

    <?php if (have_posts()) : ?>
    

    to

    <?php if (have_posts()
          && (!function_exists('mfg_show_wordpress_search_results') 
              || mfg_show_wordpress_search_results())) : ?>
    
  4. Perform the same steps in "Installing With Themes That Support More From Google"

Requires: 2.0 or higher
Compatible up to: 2.2
Last Updated: 2007-6-20 Downloads: 6,920

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(5 ratings)

Compatibility

+
=
Not enough data

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

Log in to vote.

0,1,0
0,1,0