I hope that this is easy question, I’d like to add dropdown menu to “City” field of accommodation search form, wordpress theme wprentals has “City” category where is possible to add cities but problem is that people search various versions so it is better to offer dropdown menu with available cities for easy and safe search.
Code is located in wordpress theme file shortcodes.php , part of it related to “advanced search function” is extracted to shortcodes.txt file which can be viewed at the following link:
https://zadarapartments.com/shortcodes.txt
I’ll much appreciate any help with additional code in order to add dropdown menu in search form, I’ll provide any additional information. (On the website search form “City” field is currently “display: none”).
Thank you!
The page I need help with: [log in to see the link]
What threadi said ^^^ 🙂
The code you linked to makes a call to function wpestate_get_city_select_list(). There must be some straight forward way for you to define the content returned by this function. Their support team should be able to tell you how to do so.
@bcworkz thank you for your respond, as I mentioned code is from wordpress theme not some plugin, theme authors are very busy so they do not do custom work.
Theme has a version of dropdown menu for cities category on this page:
Function wpestate_get_city_select_list is mentioned in 2 more PHP files but I think above code is related to cities category dropdown menu on above page, perhaps it can be used to add category dropdown menu also to search form?
You are using the commercial theme WpRentals. No one here has access to it, and no one can purchase it just to help you. Therefore, questions regarding commercial matters are not permitted here in the forum. You have two options: