GeoDirectory V2 Documentation

GD > Search


Introduction
GD > Search Options
GD > Search Options
Settings
Guide

Introduction

GD > Search can place a new DeoDirectory Search bar anywhere you like.

Use as a widget, shortcode, or Gutenberg block.

This page covers options available with the GeoDirectory core plugin, as well as additional options and settings from the Advanced Search Addon, the Custom Post Types Addon, and Location Manager Addon.

Configure

When designing your GD templates, you can use a widget, block, or shortcode to configure a new GD Element.

If you use shortcodes, be sure to use the shortcode builder. By using the shortcode builder you will always have the latest options and be sure to avoid any errors that might occur when copying and pasting code snippets.

Be sure to toggle on the advanced options, the Blue Button, to see all the options.

GD > Search Options

  • Core Shortcode
  • [gd_search]
    [gd_search post_type="gd_place"]
    [gd_search post_type_hide="1"]
    [gd_search customize_filters="default"]

    GD > Search Settings

    Basic Settings with GeoDirectory core plugin

    WP Backend – GeoDirectory – > Settings – > General – > Search

    Advanced Search Addon Settings

    Requires Advanced Search Filters Addon.
    WP Backend – GeoDirectory – > Settings – > Advanced Search (Tab)

    Location Manager Addon Settings

    Requires Location Manager Addon
    WP Backend – GeoDirectory – > Settings – > Locations (Tab)

    GD > Search Visual Guide

    There are several places in the settings where you can make changes to how the search bar behaves, as well as custom CSS and PHP snippets that you can use to hide one or more fields.


    Above: GD Search bar as it appears in the Directory Starter theme.


    A. Custom Post Type Drop Down
    B. Category Select Drop Down
    C. Search For field
    D. Search Near Field
    E. Search For field -> Suggestions for Category and Listing Titles
    F. Near Search field -> Suggestions for IN and Near Search
    G. Search Options Filters (not shown)

    A. Custom Post Type Drop Down

    [gd_search post_type="gd_event" customize_filters="default"]
    [gd_search post_type="gd_event" post_type_hide="1" customize_filters="default"]

    B. Category Select Drop Down

    C. Search For field

    D. Search Near field

    E. Search For field -> Suggestions for Category and Listing Titles

    F. Near Search field -> Suggestions for IN and Near Search

    G. Search Options Filters (Drawer)

  • About: The Search Options Drawer (G) is opened with the gear icon on the search bar. The drawer holds all the Advanced Search filters you have configured for your CPT.
  • The gear icon is hidden until you add Advanced Search filters to your CPT.
  • After adding filters, show the drawer:
  • Open when searched with an option:
    customize_filters="searched"
  • [gd_search post_type="gd_event" post_type_hide="1" customize_filters="searched"]
    [gd_search post_type="gd_event" post_type_hide="1" customize_filters="always"]