WordPress.org

Ready to get started?Download WordPress

Forums

Search Meter
[resolved] Search terms with spaces (8 posts)

  1. rpOliveira
    Member
    Posted 3 years ago #

    Hi!

    Search meter works great. The problem I have is with the popular searches widget - it display the most popular search terms on the sidebar. My most popular search has three words so it is displayed with this widget with the link to that search results. The problem is that the spaces are turned into %20 so clicking in that most popular search link returns zero results.

    Example:

    My most popular search is "sun and water"

    The popular searches widget from search meter shows a link with the text "sun and water". Clicking there we go to http://www.site.com/search/sun%20and%20water

    and that leads to a page saying Sorry, no results were found.

    How can I resolve this so the popular searches widget in the sidebar can be useful, presenting links to pages that display the most searched items?

    Thanks for your attention.

    http://wordpress.org/extend/plugins/search-meter/

  2. bennettmcelwee
    Member
    Plugin Author

    Posted 3 years ago #

    This is due to a bug in WordPress. I have created a plugin called Search Fixer to deal with this problem. Go to the Plugins section of your WordPress console and search for Search Fixer. Install and activate it and it should fix your problem.

    If you're interested you can find details on the Search Fixer site: http://www.thunderguy.com/semicolon/2011/06/08/search-fixer-wordpress-plugin/

    I plan to integrate this into Search Meter at some point.

  3. rpOliveira
    Member
    Posted 3 years ago #

    Works great. Thanks.

  4. rpOliveira
    Member
    Posted 3 years ago #

    Ah! It fixes the search but not for categories. If I have post titles with "sun and water" and search for that they are found but if I have posts with the category "sun and water" and I search for that search term they aren't found.

    Is there any workaround to this?

  5. bennettmcelwee
    Member
    Plugin Author

    Posted 3 years ago #

    That's just the way WordPress search always works. It searches in post titles and text, but not in categories, tags or anything else.

    Try another search plugin -- there are lots around. Many of them are also compatible with Search Meter.

  6. rpOliveira
    Member
    Posted 3 years ago #

    Yes, I forgot that I was using the plugin "Search Everything". It searches also categories and tags but now I found out that it doesn't find categories that are more than one word (with spaces between them). I'll try to find another plugin that can do this or look if Search Everything can evolve to do it. If you know one that can do this please let me know. Thanks :)

  7. Grimpond
    Member
    Posted 2 years ago #

    Thanks for 'Search Fixer' Bennett... the 'space' problem was really starting to bug me..

    G

  8. bennettmcelwee
    Member
    Plugin Author

    Posted 2 years ago #

    I'm glad you find it helpful. I'll close this topic now, since Search Fixer solves the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic