Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search by taxonomies definintion without writing into search bar
- This topic has 8 replies, 2 voices, and was last updated 10 years, 10 months ago by
Ernest Marcinko.
-
AuthorPosts
-
July 29, 2015 at 11:08 am #5432
helgaag
ParticipantHI 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,
HelgaJuly 29, 2015 at 1:03 pm #5435Ernest Marcinko
KeymasterHi!
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.pngAs 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.
-
This reply was modified 10 years, 10 months ago by
Ernest Marcinko.
July 29, 2015 at 1:25 pm #5437helgaag
ParticipantThanks. 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.
July 29, 2015 at 1:44 pm #5438helgaag
ParticipantDid you change something? Because now its working. And I am so happy. Super!
July 29, 2015 at 1:45 pm #5439Ernest Marcinko
KeymasterYes, 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.
July 29, 2015 at 1:47 pm #5440helgaag
ParticipantNow it stopped working. 🙂 Utterly confused.
July 29, 2015 at 2:01 pm #5441Ernest Marcinko
KeymasterHi!
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.
July 29, 2015 at 2:13 pm #5442helgaag
ParticipantThis is exactly what I wanted. I will without a doubt recommend this plugin to everyone.
Also excellent customer service. 😀July 29, 2015 at 2:19 pm #5443Ernest Marcinko
KeymasterI’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!
-
This reply was modified 10 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.