WordPress.org

Ready to get started?Download WordPress

Forums

WP Ultimate Search
[resolved] Only one category or tag (7 posts)

  1. martinleft
    Member
    Posted 4 months ago #

    Hi,

    is it possible to make that you could choose only one category and then only one tag? Real estate example: I choose one category as a city and then tag would be property type: London -> Studio Flat

    http://wordpress.org/plugins/wp-ultimate-search/

  2. Bryce Corkins
    Member
    Plugin Author

    Posted 4 months ago #

    This is why we included the configurable AND/OR logic. Say, for example, someone wanted to search for studio flats in London OR Paris. They could use the search bar to input City: London, City: Paris, Property Type: Studio Flat.. this would then return studio flats from both cities.

  3. martinleft
    Member
    Posted 4 months ago #

    I understand the purpose of AND/OR, but as you mentioned above about Cities, I need a possibility to choose only one city. Only one city Paris and then only one Property type. Now if I choose a city, and then I press on search bar it gives me possibility to choose one more city. I bought PRO version, maybe there's some ways to do it in settings page?

  4. Bryce Corkins
    Member
    Plugin Author

    Posted 4 months ago #

    In most instances, we'd want to allow the user to expand their search by choosing more than one city, but I understand what you're asking for and I can see how it would be useful in some instances. This would be a pretty easy feature to implement, I'll add it to our bug tracker and try to get it into the next version.. should be out within a couple of weeks.

  5. martinleft
    Member
    Posted 4 months ago #

    Thanks! Maybe there's a quick fix for now? I could edit js files

  6. Bryce Corkins
    Member
    Plugin Author

    Posted 4 months ago #

    You'd have to be pretty good with js. You'd want to look at the main.js file where the get-facets action is run. You'd need to pass the currently active facets back to the server, then in wp-ultimate-search.php in get_facets() you'd have to check the facets passed in and exclude any that are currently in use.

  7. martinleft
    Member
    Posted 4 months ago #

    Ok, I'll wait :))

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.