Forums › Forums › Search & Filter Pro › Taxonomy name with Custom Field | Write & Search Taxonomy
Tagged: custom fields, search and get
- This topic has 8 replies, 3 voices, and was last updated 4 years, 3 months ago by Ross.
-
Anonymous(Private) July 28, 2020 at 6:39 pm #254200
Hello there,
I have 2 Question.
1. I want to list taxonomies name with custom field. We are using code field for that. For Example, i have taxonomy name “Taxo 1” and acf field named code as “11.213”, and we are using on frontend like “11.213 Taxo 1”. Are there any way i can apply this in that plugin? I would like to check if taxo has code field, merge with name.
2. I have to many taxonomy and when i added into single form, it is easily timeout. Are there any change about not load all taxonomies, load after search? I tried hide empty but it didn’t work.
Thanks.
PS. I have 11 custom taxonomy and each one almost has .5 Million taxonomy with all child objects.
Trevor(Private) July 28, 2020 at 6:58 pm #254213How many posts do you have, if you have nearly that many taxonomy terms, and these are just the parents? If you count parent and child terms, how many is that?
Do you have a visualization (image) of what the form will look like?
If I understand, it is not possible to combine different terms sources into one field control, sorry.
Anonymous(Private) July 28, 2020 at 7:07 pm #254215I dont have many post yet, in my test case, i have 4 post only.
this is the form in wpadmin: https://prnt.sc/tq2csc
here is the test taxonomies : https://prnt.sc/tq2d4h https://prnt.sc/tq2df5
i cant open search page, it is timeout after 120 second.
When i write : [searchandfilter id=”XXX”], page is timeout. I can open in local but it takes more than 500 seconds.
And i dont want to merge fields, i just want to print their name with custom fields.
Anonymous(Private) July 28, 2020 at 7:08 pm #254217and my single taxonomy search config is: https://prnt.sc/tq2ggj
Anonymous(Private) July 28, 2020 at 7:23 pm #254219i opened local version and here is the how form looks https://prnt.sc/tq2jai.
Anonymous(Private) July 29, 2020 at 11:36 am #254320Hello Ross,
Thank you for your honest answer.
First, I have other pages for your plugin so i don’t want to refund.
After i’have check every taxonomy for timeout, i made a form without timeout. Of course i had to remove some taxonomies.
I can make autocomplete by myself but can you help me about injection those fields to search results?
By the way, i can manage 0.5 M results in mysql via wp-admin ajax cache easily. Believe me, i have done this before ๐ [if you want to see, you can check https://turksoz.kz/?lang=tr write ‘aba’, and it was a ajax post and wp_query in milions of words. ] Anyway thank you for your warning. I appreciate that.
Ross Moderator(Private) July 29, 2020 at 5:45 pm #254437Hi Muhammed
Haha if you know you can handle that kind of volume then great ๐
In regards to building a filter… hmm.. it could be possible, but its not ideal:
1) Create your own field external to the search form and build it how you want
2) Create the real field to correspond to this taxonomy in S&F, but hide it with CSS
3) Make sure the real S&F field is always empty (to prevent loading of taxonomy terms) – we usewp_list_categories
so you can use the WP filter, to change the arguments so that they don’t return any taxonomies.
4) Then whenever you update your own field, using JavaScript, add that as an option to the invisible S&F field, and set it.
5) When the form is submitted, this hidden field will be submitted with the correct value, and affect the results accordingly.Ouch! I don’t like that as an approach, which is why we’re building an API in S&F v3, to allow you to much more easily create any kind of field you want :/
Anyway, I hope that helps ๐
Best
-
AuthorPosts