• Resolved oh_hello

    (@oh_hello)


    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://ww.wp.xz.cn/plugins/geodirectory/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Paolo

    (@paoltaia)

    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

    (@oh_hello)

    Thanks for the response. Where could I find the GD search widget code to modify?

    Plugin Author Paolo

    (@paoltaia)

    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.