Forum Replies Created
-
AuthorPosts
-
danielecelsa07
ParticipantHi Ernest,
thanks for your explanation!
I was trying to use a custom field filter, but I realized that I can use only custom field associated to CPTs.. How is it possible?
I added (through Advanced Custom Field plugin) custom fields to a Taxonomy.
So when I create a taxonomy term, I fill that custom field (text let’s say).In Ajax Search Pro I set the search bar to search for taxonomy (your plugin is wonderful also for this), I mean that I type taxonomy terms in the search bar and those are the results.
BUT I want to have a filter! I want to filter for Custom Field, the one associated to the taxonomy terms.
Why is this not possible? If it is possible to search for Taxonomy, there should be allowed also to filter them, I guess..In Index table setting, I don’t find at all the custom field created (I wanted to index it, if it was the problem), I can only index custom field related to CPT as far as I see.
Is this the correct behavior of the plugin, or am I missing something?
Anyway, can you suggest me a way to use a filter of custom fields related to Taxonomy terms?Thanks a lot as always!
Danieledanielecelsa07
ParticipantHi Ernest,
thanks for your answer.
I see {taxonomy_name} redirect to the taxonomy term ID, is there a way to have the real value of the taxonomy term instead of the ID? This would solve my problem…
Is it weird that for categories/taxonomy it used the ID, while for custom_filed it is used the actual value. It would be useful to get the real value also for taxonomies..
Thanks,
Daniele-
This reply was modified 6 years, 3 months ago by
danielecelsa07.
danielecelsa07
ParticipantHi Ernest,
ok thanks, I will try to do this.
Meanwhile, I was thinking again to ‘Redirect to: Custom URL‘
I see that the special word {phrase} indicates what is typed in the search bar.
Is there maybe a special word also for Filter?
I would like to try to redirect to the page ‘mywebsite/filter_term/phrase‘ where ‘filter_term‘ is what is chosen in a filter applied to the search.Is this possible?
Thanks in advance,
Danieledanielecelsa07
ParticipantYou cannot access this content.
danielecelsa07
ParticipantOk Ernest, thank you!
I would ask you to kindly let me know when (and if) you are going to implement this awesome feature 🙂
Regards,
Danieledanielecelsa07
ParticipantHi Ernest,
thanks a lot, points 3 and 4 are clear!
About point 1, I knew the chance to use autocomplete and keyword suggestions, but they appear only when there are no results and autocomplete is just one word…that’s why I was looking for a drop drown with all the taxonomy terms suggested.
Are you maybe thinking to implement this?
I think it could be very interesting, actually if you give the chance to search CPTs through taxonomy terms, why do not show the possible terms to be used with the drop-down (like Google)? 🙂Thanks,
Danieledanielecelsa07
ParticipantHi Marcinko,
thanks for your answer.
What if I would create a search_2.php?
Would Ajax Search Pro work properly with a second Search Results Page? Would Ajax Search overwrite correctly the logic of results also on this second page?Thanks,
Danieledanielecelsa07
ParticipantHi Ernest,
thanks for your reply.
1. I think you are looking for the taxonomy terms as results feature.
Well, I think I wrongly explained the situation.
I actually does NOT want Taxonomy Terms as result, my results must be CPTs.
I just would like to have, in the dropdown as suggestions, the taxonomy terms but still have CPTs as results.Example:
CPT: Watches
Taxonomy: ColorCPT#1: Watch1 -> Taxonomy term associated: Blue
CPT#2: Watch2 -> Taxonomy term associated: RedIn the search bar I type ‘Re‘ and, as a suggestion, in the dropdown I see ‘Red‘ -> so I type ‘Red‘ and search.
In the search result page, I find ‘Watch2‘I got that on your website I misunderstood and it is not present this example.
How can I reach it (if it is possible to reach)?2. Well, this might hive you something close to that:
.asp_r {
border: none !important;
border-left: 1px solid #dfe1e5 !important;
border-right: 1px solid #dfe1e5 !important;
border-bottom: 1px solid #dfe1e5 !important;
margin-top: -12px !important;
padding: 0 !important;
}.asp_m .probox {
border: none !important;
box-shadow: none !important;
}.asp_m {
border-radius: 12px !important;
border: 1px solid #dfe1e5 !important;
}This is NOT really working right now because as you can see here -> https://idlike.app I add now some shadow on the focus of the input box, but I’ll come back to this point when the stuff with more priority will be fixed.
3. I think it is due to the results position is set to “block” instead of the default “hover” mode, and the results container is also part of that block, which is centred overall.
What I did is that I created a new section on Elementor with 4 column, first and last column are empty (for centring the whole layout), second column there is the dropdown, fourth one there is the search bar. I didn’t change the CSS property of any Div. I did a few tries but really I’m not being able to fix this..4. Drop-downs are very hard to customize on cross platforms, so there is only a built in theme that we use. The chosen script drop-down is even more problematic sometimes. You can start off with something like this:
.chosen-container,
.chosen-container .chosen-single {
background: none !important;
border-radius: 12px !important;
}.chosen-container .chosen-single {
min-height: 58px !important;
line-height: 45px !important;
}Ok, now I know which selector to work with thank you. But the problem is that right now, both with this CSS both without any CSS the dropdown is really not clearly visible as you can See from the screenshot here: https://imgur.com/LXc68p8
5. I’m afraid that is not possible. It is not possible to tell before the redirection if there is any results – as the results are parsed after the redirection in that case, in a separate process.
Ok thank you.Thank you very much in advance,
Danieledanielecelsa07
ParticipantYou cannot access this content.
danielecelsa07
ParticipantYou cannot access this content.
danielecelsa07
ParticipantHi Ernest,
Thank you very much for your precious hints!
I reached something like that, however I still have some doubts that I hope you will help me to address.
1. I am searching CPTs through taxonomy (I mean, I type a taxonomy term in the search bar and as result I get the CPTs which have that term associated).
When I start typing, I receive in the dropdown box the suggestions of the possible results, but I would like to have the suggestions of the taxonomy terms.
I saw on your website that this is possible, but I can’t get how.2. About this dropdown box, I would like something like the screenshot attached, where search bar and box results are a unique block.
You can find what I reached on my website idlike.app, would you mind to suggest a CSS to reach the result in the screen attached?3. I notice (on my website) that when I start typing, the search bar (and the dropdown box) move a bit to the top, something like a half-centimeter but it is something weird. Do you maybe know why this happens and how to solve it?
4. As I said in the first post, I would like to have a dropdown filter.
I got how to position it at same level of the search bar (thanks!) but how to customize it?
I do not find the related section in ‘Theme & Styling’, while I found the section for the result box, search bar and all the rest.5. Last one is a bit tricky, I understand if you won’t have the answer.
I would like to avoid to be redirected to the Result Page on clicking the return button, in the cases when the result is not found! (usually I set To be redirected in Result Page)
Do you think this is possible?I really thank you in advance for your help!
Regards,
DanieleJanuary 28, 2020 at 6:51 pm in reply to: Custom field filter not working – Chosen jQuery not loaded #25544danielecelsa07
ParticipantThanks Ernest for your reply, now is clear 🙂
So, I am trying to change my mind and instead of using Taxonomy, I am using CPT hierarchical. In this way I will be able to apply filters.
But I didn’t find a way to filter this kind of CPT through Ajax Search Pro filter. Can you suggest to me how to do?I am trying to filter based on the fathers. So I would like to have a filter on the father terms, and searching the sons (this is because I have same sons name, but each one assigned to a different father)
EX:
-FATHER1
—-CHILD_A
—-CHILD_B
-FATHER2
—-CHILD_ASo I would like to filter for ‘FATHER1’ and typing ‘CHILD_A’ to receive only the result son of FATHER1
I hope to have been clear. If necessary, I can open a new topic for this.
Thanks,
Daniele-
This reply was modified 6 years, 4 months ago by
danielecelsa07.
-
This reply was modified 6 years, 4 months ago by
danielecelsa07.
January 27, 2020 at 1:00 am in reply to: Custom field filter not working – Chosen jQuery not loaded #25506danielecelsa07
ParticipantThanks for the explanation.
You said Taxonomies are new in WordPress, the same thing is for Category/Tag? Or maybe is possible to filter Category/Tag content?
Kindly think to expand the custom field filters for taxonomy term, it would be really useful 🙂
Thanks,
DanieleJanuary 24, 2020 at 11:02 am in reply to: Custom field filter not working – Chosen jQuery not loaded #25469danielecelsa07
ParticipantHi Ernest,
thanks for your reply.
So, is there a way to filter taxonomy terms results?
I tried filtering by parent term in a hierarchical taxonomy but it did not work, so the only other option that I saw was to add a custom field to the taxonomy terms and filter by custom field…But I got it is not possible.
FYI, when I tried filtering by parent terms this is what I did:
The taxonomy Restaurant was hierarchical. The parent were cities, and the children were the actual restaurants.
I filtered by Taxonomy filter, using a dropdown menu where I show only the parent tems. But once I choose one, the search is not affected by the choice.The same approach worked when I filtered a CPT result (not a taxonomy term like I am trying now) with a hierarchical taxonomy associated. I filtered by the parent terms and I searched in search bar for the children terms, and as a result I got the CPT with associated the taxonomy term searched, filtered by the father.
Hope you can give me a suggestion for filtering taxonomy terms.
Thank you!
January 24, 2020 at 1:02 am in reply to: Custom field filter not working – Chosen jQuery not loaded #25456danielecelsa07
ParticipantHi Ernest,
I add one more thing.
It seems that the Index Engine Table (and consequentially – I guess – the custom field filter) does not refresh in the proper way.
If I create some new custom field with ACF, I do not find them in Index Table nor in custom field filter.. but, I still see some custom fields that I put in the trash…I don’t even see some other…
Is there a way to refresh the Index Engine, in order to make it ‘see’ the last changes?I also tried to clean the cache but it seems stuck in ‘Loading’, as you can see in the attachment.
I ask you on this topic because I think that maybe the filter is not working properly for this reason.
Thanks,
Daniele-
This reply was modified 6 years, 4 months ago by
danielecelsa07.
-
This reply was modified 6 years, 3 months ago by
-
AuthorPosts