Every GeoDirectory widget and block also works as a shortcode, with the same settings. Below are the shortcodes in GeoDirectory core, then the ones our add-ons add. For screenshots and settings of each one, see the list of all GeoDirectory core widgets.
How to see every parameter of a shortcode
The easiest way to get a shortcode with all of its parameters is the shortcode builder. In the classic editor, click the GeoDirectory shortcode button above the editor, pick a widget, change its settings and insert it. The builder writes out the shortcode with the options you chose. See Shortcode Builder for details.
In the block editor, add the GeoDirectory block instead and use its settings panel. If you use a page builder, paste the shortcode into its text or shortcode element.
Shortcodes in GeoDirectory core
[gd_search]: the search bar[gd_listings]: a list of listings filtered by post type, category, location and more[gd_categories]: a list of categories[gd_tags]: a list of tags for a post type[gd_map]: a map (directory map, archive map or a single listing map)[gd_add_listing]: the add listing form[gd_dashboard]: the user dashboard for logged in users[gd_best_of]: the best rated listings from your categories[gd_az_search]: an A to Z list of listings[gd_recent_reviews]: recent reviews[gd_recently_viewed]: the listings a visitor viewed most recently[gd_notifications]: hints, tips and notices for users[gd_page_title]: the page title on GeoDirectory pages[gd_cpt_meta]: the meta title, description and image of a post type archive[gd_category_description]: the current category description[gd_loop]: the listings on the archive and search templates[gd_loop_actions]: the sort by and grid/list view controls above the loop[gd_loop_paging]: pagination for the loop[gd_archive_item_section]: opens and closes left and right sections in the archive item template[gd_simple_archive]: a simple archive design builder[gd_simple_archive_item]: a simple archive item design builder[gd_post_title]: the listing title with a link[gd_post_content]: the description or any textarea field[gd_post_images]: listing images as an image, slider or gallery[gd_post_meta]: any single custom field, for example[gd_post_meta key="phone"][gd_output_location]: all fields set to show in one output location[gd_post_address]: the address, in a format you choose[gd_post_badge]: a badge or button based on a field value[gd_post_rating]: the rating stars[gd_post_fav]: the favorite link[gd_post_directions]: a Get Directions link to Google Maps[gd_post_distance]: the distance to the listing[gd_post_features]: a list of listing features[gd_map_pinpoint]: a link that opens the listing marker on the map[gd_author_actions]: edit and delete links for the listing owner[gd_report_post]: a link to report a listing[gd_single_tabs]: the details page tabs[gd_single_reviews]: the reviews and review form[gd_single_taxonomies]: the listing categories and tags[gd_single_next_prev]: links to the next and previous listing[gd_dynamic_content]: text that changes with the listing field values[gd_ninja_forms]: a Ninja Forms form sent to the listing (only when Ninja Forms is active)
Shortcodes added by add-ons
These only work while the add-on is active.
- Location Manager:
[gd_locations],[gd_location_switcher],[gd_location_description],[gd_location_meta],[gd_location_near_me] - Events:
[geodir_event_calendar],[geodir_event_schedules],[geodir_event_countdown],[geodir_event_ayi] - Custom Post Types:
[gd_cpt_listings],[gd_linked_posts] - Pricing Manager:
[gd_pricing],[gd_single_expired_text],[gd_user_bundle] - Claim Listings:
[gd_claim_post] - List Manager:
[gd_list_save],[gd_list_loop],[gd_list_loop_actions],[gd_list_single_description] - Embeddable Ratings Badge:
[gd_embed]
Showing one part of a listing on its own
The details page tabs come from [gd_single_tabs], but each part of a listing has its own shortcode too. If you build your own details template and want the reviews in one place and the description in another, use [gd_single_reviews] for the reviews, [gd_post_content key="post_content"] for the description, [gd_post_images] for the images and [gd_post_meta key="your_field_key"] for any custom field.