GD > Search

The GD > Search widget shows the GeoDirectory search bar. The search bar can be used search listings created with GeoDirectory.

All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our Super Duper Widgets.

  • The icons inside the search boxes can be used to clear the current values.
  • The Near input can be used to filter listings closest to the position entered such as a zip code or place name.
  • With the Advanced Search Extension, you can add custom field filters to the main search bar or to the advanced search section (see example section).

Widget Options

This image shows the widget configuration with the Advanced Options revealed.

Default Post Type 

Choose which post type should be selected by default. This setting will have an effect when the search bar is used on a normal WP Page, the Location page, or the search results page. On CPT Archives this setting will be overridden to select the CPT of the archive.

Hide Post Type Selector

This settings will have an effect on a normal WP Page, or the location page or CPT Archives. The setting will have no effect when used on the search results page because hiding the post type select would make it impossible to search for other post types that are active on the site.

Open Customize Filters

Default - Filters are closed until the user opens them to adjust the options.
Open when searched - Leave the filters open on the search results page when filters are active.
Always open - The filters will stay open all the time, whether or not they are in use.

Extensions

If more than one CPT is detected then the below options will show.

  • Default Post Type - The custom post type to show by default. Only used when there are multiple CPTs.
  • Hide Post Type Selector - Hide the CPT selector (if not on the search page) this can be used to setup a specific CPT search and not give the option to change the CPT.

If the Advanced Search extension is installed the below option will show.

  • Open advanced filters - Select when open / hide advanced filters. Options are; Default, Open when searched, always open.

Example Output

Default output

Example with multiple custom post types and advanced search options closed.

Example with advanced search filters open

What happens if a user types in the Search field and hits Search without waiting for the suggestions? 

That is known as  'Near Search'. In this case, the text entered in the search field is sent to your maps provider - either Google or OSM -- and then a coordinate set is returned.

Thereafter, your site's database of locations is searched, for the radius from that point - and then the results are shown.

Optionally, you can change the Near Search radius by heading to GD > Settings > General > Search > Search Near Radius and then incrementing the value accordingly (the number denotes miles/kilometres, and a lower value yields faster results). 

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us