Location Manager Shortcodes

Location Tab Switcher Location Switcher Current Location Name Location Description Location Neighbourhoods Popular Locations Popular in Neighbourhood

Location Tab Switcher

Shortcode: [gd_location_tab_switcher]

This is like the location switcher usually added to the menu.

Parameters:
  • none
Example:

Location Switcher

Shortcode: [gd_location_switcher]

This is best used on a page or a wide content area, this shows searchable lists of locations.

 All Locations Demo

Parameters:

  • none

Current Location Name

Shortcode: [gd_current_location_name]

  1. Returns the current location name
  2. Only works on GD pages that have the location name in the URL, so GD > Permalinks need to be set to include
Parameters:
  • none

Location Description

Shortcode: [gd_location_description]

return the current location description

Parameters:

  • none

Location Neighbourhoods

Shortcode: [gd_location_neighbourhood] or [gd_location_neighborhood]

returns list of current neighbourhoods

Parameters:

  • none

Popular Locations

Shortcode: [gd_popular_location]

return a list of popular locations

Parameters:

  • none

 

Popular in Neighbourhood

Shortcode: [gd_popular_in_neighborhood] or [gd_popular_in_neighborhood]

Parameters:

  • post_type – The slug for the post_type (default = gd_place)
  • category – ID number of the category to show (default = 0 for all)
  • list_sort – One of az, latest, featured, high_review, high_rating, random (default = latest)
  • post_number – Number of posts to show (default = 5)
  • layout – Number of columns to show (default = 2)
  • character_count – Number of characters to show from the Excerpt (Min/default = 20)