This support ticket is created hace 3 años, 10 meses. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
Hey,
I have a very simple post type called "location", with 2 taxonomies: cities, and streets.
I have about 1200 cities and about 30000 streets.
I build a custom view with a search for locations, with the two select menus of both - and the server can't handle the load. the page and even the view don't even come up.
Is there a way of handling such an amount of taxonomies?
Thanks
Ido
hmm but once i do that the search doesn't appear at all in the frontend because now there are no search filters (although I had them stay):
enlace oculto
also, i'm not sure - but would the filtering still affect each other like this? meaning, when i choose a city, will now only the available streets within this city show?
Lets consider that you have only 10 cities and 20 street setup but the dependent dropdown is not possible even with Tooslet as there is no such feature available when you select the city, it should display the associated street.
I'm not sure, if you would like to change your structure where you drop the idea to use taxonomy and configure your taxonomies as post type. But even if you agree with that, 1200 post for cities and 30000 posts for streets would be too much and filter is obviously going to be broken.
As I acknowledged, there is no such feature available and whatever you want to build would be custom programming which is beyond the scope of our support policy. If you require help for custom programming, you can always contact our certified partners:
=> https://toolset.com/contractors/
I’ve created many times such dependencies with taxonomies. Each “location” post type is connected to one city taxonomy and one street taxonomy. In the search form I choose “show only available options” and then when I choose a city I only get the streets of locations related to that city.
I’ve created many times such dependencies with taxonomies. Each “location” post type is connected to one city taxonomy and one street taxonomy. In the search form I choose “show only available options” and then when I choose a city I only get the streets of locations related to that city.
==>
That is not actual dependent dropdowns. We say dependent dropdowns when you select a city, the street dropdown should only display related results that belongs to selected city.
Using option “show only available options” - It will display only terms for the available posts but that option will have even more performance impact compare to normal dropdown. You have too many terms thats the issue.