Plugin Directory

More from Google

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"

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data

Average Rating

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