Answer the question
In order to leave comments, you need to log in
Which WordPress search and filter add-on would you recommend?
I need to show suggestions in the search field when entering a country. After selecting a country, a dropbox would appear with the possible cities of the selected country. Then, by analogy, streets, houses, ....
Answer the question
In order to leave comments, you need to log in
I won’t tell you a ready-made plugin ... But I can tell you how this can be implemented approximately ...
I recently wrote something similar in java, but the principle is the same in PHP ...
Here, this is a dropbox + ajax search
https://developer. snapappointments.com/bootstrap-s...
https://github.com/truckingsim/Ajax-Bootstrap-Select
Write the server part and return the desired list for the entered word or part of the word (countries, cities, etc., respectively). In principle, it is possible without Ajax... but as for me, this entire list should not be given to the client at once...
Well, then using js you make a selection if such and such a country is selected, then give the cities of this country, and then when choosing cities, give away streets, etc.
Another question is where to get the list of countries, cities, etc.. A third-party service and work with the REST API will help here.
Here, for example - https://dadata.ru/api/suggest/#about-address
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question