WordPress.org

Ready to get started?Download WordPress

Forums

how to search for a specific string (4 posts)

  1. besonen
    Member
    Posted 6 years ago #

    is there a way (a plugin is acceptable) to search an internal (i.e. no google, yahoo, etc.) wordpress blog for "sun" without getting "sunflower" returned as one of the results?

  2. besonen
    Member
    Posted 6 years ago #

    ping

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    I think this might work:
    http://example.com/?s=sun%20&sentence=1

    The "sentence=1" forces it to treat the search as one unit instead of as a list of words. The %20 is a space character, so you're actually searching for "sun ", with a space at the end.

  4. besonen
    Member
    Posted 6 years ago #

    the "%20" didn't work. thanks for the suggestion though Otto42.

    anyone else have any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags