Title: Adding region to search fields
Last modified: August 22, 2016

---

# Adding region to search fields

 *  Resolved [oh_hello](https://wordpress.org/support/users/oh_hello/)
 * (@oh_hello)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-region-to-search-fields/)
 * Hello there,
 * Is it possible to add just the Region field to the list of available fields to
   search by?
 * I see you can add the address field but that is a text field for searching the
   address specifically. Ideally I could add the Region field and it would be a 
   dropdown of available regions (just as it displays on the add new listing form).
 * Thanks so much.
 * [https://wordpress.org/plugins/geodirectory/](https://wordpress.org/plugins/geodirectory/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Paolo](https://wordpress.org/support/users/paoltaia/)
 * (@paoltaia)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-region-to-search-fields/#post-5821462)
 * Hi,
 * that is not possible without a customization.
 * You’d need to copy the GD search widget code into your theme functions.php rename
   the class/functions name and modify following your needs.
 * This will create a new widget, which will behave as you need it.
 * Thx
 *  Thread Starter [oh_hello](https://wordpress.org/support/users/oh_hello/)
 * (@oh_hello)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-region-to-search-fields/#post-5821468)
 * Thanks for the response. Where could I find the GD search widget code to modify?
 *  Plugin Author [Paolo](https://wordpress.org/support/users/paoltaia/)
 * (@paoltaia)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-region-to-search-fields/#post-5821482)
 * You can find the widget class in:
 * geodirectory_widgets.php around line 550:
    Starts with:
 *     ```
       class geodir_advance_search_widget extends WP_Widget {
       ```
   
 * Let us know how you went.
 * Thx

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding region to search fields’ is closed to new replies.

 * ![](https://ps.w.org/geodirectory/assets/icon-256x256.jpg?rev=2778361)
 * [GeoDirectory - WP Business Directory Plugin and Classified Listings Directory](https://wordpress.org/plugins/geodirectory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geodirectory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geodirectory/)
 * [Active Topics](https://wordpress.org/support/plugin/geodirectory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geodirectory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geodirectory/reviews/)

## Tags

 * [Region](https://wordpress.org/support/topic-tag/region/)

 * 3 replies
 * 2 participants
 * Last reply from: [Paolo](https://wordpress.org/support/users/paoltaia/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/adding-region-to-search-fields/#post-5821482)
 * Status: resolved