WP Job Manager Geolocation: Shortcodes

Above you can see how easy it is to add the new geolocation features of WP Job Manager Geolocation add-on to a search form using the settings page. This approach is useful if you are using a single Jobs search form on your site or have multiple search forms, but you want them all to look the same and have same functionality. However, with the shortcodes attributes you can define each of the search forms differently if that is what you wish to do. All you need to do is add the attribute gjm_use="1" to the search forms short-code that you are using

[jobs gjm_use="1"]

and add the additional attributes listed below to define the different features of the search form:

Attribute Value
gjm_use Use the value 1 if you want to use the additional shortcode attributes to define the features of WP Job Manager Geolocation. Otherwise, use the value 2 if you want the administration settings to define the geolocation features.
gjm_map Use the value "1" if you want to display a map. Default is no map will be displayed
gjm_autocomplete Use the value "1" if you want to use Google address autocomplete on the location field of the search form
gjm_map_width Map width in pixels or percentage. default is "100%"
gjm_map_height Map height in pixels or percentage. Default is "250px"
gjm_orderby Dropdown select box to "Sort by".  Enter the desired values, comma separated, in the order you want them to appear. default will be "distance,featured,title,date"
gjm_radius Enter the desired radius values. Enter single value for a default value with no dropdown or multiple values, comma separated, for a dropdown select box. Default will be "5,10,15,25,50,100"
gjm_units Enter a default value "imperial" for Miles or "metric" for Kilometers or enter "both" for a dropdown select box. Default is "both"
gjm_distance Enter "1" if you want to display the distance of each job in the results. Default is nothing - no distance will be displayed
gjm_scroll Enter "1" if you want the window to scroll down to a job when a the user clicks a marker on the map. default is no scroll

Shortcode example:

[jobs gjm_use="1" gjm_map="1" gjm_map_width="100%" gjm_map_height="250px" gjm_distance="1" gjm_scroll="1"]

Jobs Global Map Shortcode Usage

[gjm_jobs_map]
Attribute Usage
map_width Map width in pixels or percentage. default is "100%"
map_height Map height in pixels or percentage. Default is "250px"
map_type Set the map type: ROADMAP, SATELLITE, HYBRID, TERRAIN
marker_cluster Set it to 1 if you want to use Marker cluster to group nearby markers. Set to 0 if you don't want to use the feature. Default is 1
jobs_count Set the maximum number of jobs that can be display on the map. Default is 200.

Shortcode example:

[gjm_jobs_map map_width="100%" map_height="250px" map_type="ROADMAP" jobs_count="100" marker_cluster="1"]