Search by taxonomies definintion without writing into search bar

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search by taxonomies definintion without writing into search bar

This topic contains 8 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 11 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #5432
    helgaag
    helgaag
    Participant

    HI there. I really like your plugin for many reasons…. but. I cannot for the life of me, get it to work the way I need it to work.

    Please – no solutions containing code. (Also – I don’t have superadmin access).

    I have created a taxonomies defined database called “hugmyndabanki” (idea bank). The concept is that the visitor enters the page and selects one or more of the tickboxes and gets “ideas” or search results from the taxonomies defined posts all by selecting tickboxes and without being directed to another page. So no specific search result page please.

    The thing is – I can’t figure out how to make it work without writing something in the search bar. Also the tickboxes always start “ticked” but I would like them to start empty and by selecting them – to get all the relevant results.

    Kind regards,
    Helga

    #5435
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Well, I’m not sure if this is possible without custom coding, but I have a possible solution in mind using only the search configuration.

    So, it is possible to change how many characters should trigger the ajax event to fire, so first of all let’s change that to 0 characters.
    Go to the General Options -> Behavior panel, and change the Minimal character count to trigger search to 0. While you are there, make sure that the Trigger search when changing a facet on settings? is also enabled: https://i.imgur.com/j4mH9LD.png

    As for the checkboxes: The default state (checked, unceched) is determined if the given taxonom term is excluded or not on the Advanced Options panel. So go to the Advanced Options panel, scroll down, and there you have a Exclude Taxonomy Terms option. Now, if you exclude all of the terms from the taxonom “hugmyndabanki”, then each checkbox should be unchecked on the front-end.

    I’m not sure how this is going to affect the outcome, but there is a good chance this will actually work.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #5437
    helgaag
    helgaag
    Participant

    Thanks. The boxes are no longer ticked. πŸ™‚ Yay!

    However… I already tried the 0 letters trick and the search does activate – but with no results. When there should be 10 results from the first box, in the first taxonomy.

    When I try typing the text (same taxonomy name) there only appears 1 result (the taxonomy field) and upon clicking on that result the 10 desired results/posts appear.

    What I really want to happen is that upon ticking that particular box, all 10 result appear on the same page (not a new page).
    No search field, no middle step (no extra clicking), and the results should appear on the same page (so that if I tick another box there will be more results…)

    I hope this isn’t too confusing.

    #5438
    helgaag
    helgaag
    Participant

    Did you change something? Because now its working. And I am so happy. Super!

    #5439
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Yes, I’m actually doing stuff right now πŸ™‚

    I will explain as soon as I’m done. Please do not change anything for a couple of minutes.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #5440
    helgaag
    helgaag
    Participant

    Now it stopped working. πŸ™‚ Utterly confused.

    #5441
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Here is what I did with some explanation πŸ™‚

    So, I’ve found the reason. By default the category filtering logic works sort of like an AND logic. It excludes everything that’s not within the exactly selected categories. In your case this is not good, as you want sort of the union of posts in at least one of the categories. Luckily there is an option to change that, which I did and the results immediately started to appear. This option can be found on the General Options – Behavior panel, it’s called Category/Term logic. I have changed that to OR.

    Then I proceeded to do some other changes as well, I hope you don’t mind.

    • I have changed the ajax handler on the compatibility options panel, it’s a performance trick – it does not work on every site, but it does on yours πŸ™‚
    • I have disabled the animation on the Theme Options – Isotopic Results panel. Since you are planning to display 4 rows of results, it might be slowing down the users browsers on slower computers. You can of course turn it back on by selecting an animation at the Display animation opion. The default value was the BounceIn.
    • I have changed the color of the links to white to better fit with the overlay color. You can change it on the Theme Options -> Typography panel.
    • I have disabled the description on results. The isotopic layout looks much cleaner with less text in my opinion. But of course if you prefer to display the description as well, you can change it back on the Layout Options – Results layout panel.

    That’s basically all I did, I hope you don’t mind.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #5442
    helgaag
    helgaag
    Participant

    This is exactly what I wanted. I will without a doubt recommend this plugin to everyone.
    Also excellent customer service. πŸ˜€

    #5443
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I’m happy I could help, and thank you for your kind words!

    Feel free to rate the plugin on your codecanyon downloads page if you want to.

    Have a nice day!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.