Support » Your WordPress » link to google search

  • how can i make a link from my blog to the search engine , so if he/she search then no result found by the blog search so it appear like this:
    Try this search on Google or Yahoo.

Viewing 15 replies - 1 through 15 (of 20 total)
  • Can you try to rephrase that?

    Moderator James Huff


    He wants his search to function similarly to the search on there forums. Notice that when you search the forums, at the bottom of the search page there is a link to also search via Google or Yahoo. This link is all ready constructed so that clicking it will specifically do a search of these forums with the search term.
    I’m also curious if anyone knows about this.

    Thanks to everyone, that’s right moshu but what i want is to be exactly like the wordpress forum style. you search within the site search box then also you can just press a link to google if you want more search within your site. so i want the same strategy which used in the wordpress forum.

    I know what you mean. I ca make it work if I know the php value the the search outputs on the search results page.

    but are you sure that this code is the same as in the wordpress forum

    Mark (podz)


    Support Maven

    hihi – only Matt has access to the raw code, but I’m sure Beel’s code is pretty damn good. It does not need to be exactly the same to work the same.

    is this code search within my site only or with the site and the web

    where i should place it i want it under word press search bar do i place it in the index.php

    Hi beel i placed your code but the images doesn’t appear for google and yahoo another thing that this code is like link opens google site and yahoo site and that’s not what i want. what i want is when aperson search with my site search then he didn’t find the result he /she can press google button so he/she can find more result about my site in the google search engine

    I guess what hihi wants would be to include the site search…
    site:his_URI <?php echo $s; ?>”>
    but I am not a coder 🙁

    ah, that was me…
    what I meant
    site:his_URI <?php echo $s; ?>">
    (you can really see I am bad at writing code, LOL)

    the strong doesn’t work in code – I should have known that!

    you can see that at

    Beel and hihi,
    I think you guys are still talking about 2 (two) different things 🙂
    1. What you have, Beel, is to enable a search on the entire web by Google – using the keyword typed initially in your WP search box…
    2. And what hihi wants is a site search done by Google with the keyword (as is the case when we click the Google link on the WP search result page).

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘link to google search’ is closed to new replies.