GeoDirectory Documentation (DO NOT REMOVE)

Core Shortcodes

On this page

Home Page Map Custom Post Type Categories Listings Page Map Listing Slider Login Box Popular Post Category Popular Post View Recent Reviews Related Listings Search GD Listings GD Best Of Add Listing Form

Home Page Map

Shortcode: [gd_homepage_map]

This shortcode is the equivalent of the GD > GMap – Home Page widget.

Parameters:

Example: [gd_homepage_map width=100% height=300 scrollwheel=false]

Custom Post Type Categories

Shortcode: [gd_cpt_categories]

This shortcode is the equivalent of the GD > CPT – Categories widget.

Parameters:

Example: [gd_cpt_categories show_count=1]

Listings Page Map

Shortcode: [gd_listing_map]

This shortcode is the equivalent of the GD > GMap – Listing Page widget.

Parameters:

Example: [gd_listing_map width=100% height=300 scrollwheel=false category="2,3,4"]

Listing Slider

Shortcode: [gd_listing_slider]

This shortcode is the equivalent of the GD > Listing Slider widget.

Parameters:

Example: [gd_listing_slider post_number=5 category=3 slideshow=true show_featured_only=true]

Login Box

Shortcode: [gd_login_box]

This shortcode is the equivalent of the GD > Login box widget.

No parameters

Example: [gd_login_box]

Popular Post Category

Shortcode: [gd_popular_post_category]

This shortcode is the equivalent of the GD > Popular Post Category widget.

Parameters:

Example: [gd_popular_post_category category_limit=10 parent_only=true]

Popular Post View

Shortcode: [gd_popular_post_view]

This shortcode is the equivalent of the GD > Popular Post View widget.

Parameters:

Example:

[gd_popular_post_view category=3 layout=5 add_location_filter=true character_count=0 show_featured_only=true]

Recent Reviews

Shortcode: [gd_recent_reviews]

This shortcode is the equivalent of the GD > Recent Reviews widget.

Parameters:

Example: [gd_recent_reviews count=5]

Related Listings

Shortcode: [gd_related_listings]

This shortcodes is the equivalent of the GD > Related Listings widget.

Parameters:

Example: [gd_related_listings relate_to=tags layout=3 add_location_filter=true list_sort=featured character_count=0]

Search

Shortcode: [gd_advanced_search]

This shortcode is the equivalent of the GD > Search widget.

No parameters unless Advanced Search addon is active:

Example: [gd_advanced_search show_adv_search='always']

GD Listings

Shortcode: [gd_listings]

This shortcode is almost the equivalent of what you see on the GD category listings pages.

Parameters:

Example:

[gd_listings post_type="gd_place" layout=4 category="1,3" post_number="4" list_sort="high_review"]
[gd_listings post_type="gd_event" add_location_filter="0" layout="4" post_number="4" show_favorites_only="1"]


Note:
When displaying a grid of 4 or 5 listings the description will be automatically hidden. To unhide it, use the following custom CSS at GD – Design – Scripts – Custom CSS
[css]
.geodir_category_list_view li.geodir-gridview .geodir-content .geodir-entry-content {
display: block;
}
[/css]

GD Best of

Shortcode: [gd_bestof_widget]

Parameters:

Example:

[gd_bestof_widget title="widget title" post_type=gd_hotel post_limit=5 categ_limit=6 character_count=50 use_viewing_post_type=true add_location_filter=true tab_layout=bestof-tabs-as-dropdown]

 

Add Listing Form

Shortcode: [gd_add_listing]

  1. This shortcode allows you to create your own Add Listing page(s).
  2. By default GD uses the same Add Listing page to generate different forms for all different Custom Post Types and/or price packages.  For example:
    1. https://yoursite.com/add-listing/?listing_type=gd_place&package_id=1
    2. https://yoursite.com/add-listing/?listing_type=gd_event&package_id=6
  3. Do not add this shortcode to the Add Listing page selected at GD > Permalinks > GeoDirectory Pages > Add Listing page.
    That page is reserved for GD generated pages, so only add this shortcode to any extra WP pages.
  4. After you have created all your custom Add Listing pages, you might have to permanently delete the temporary default Add Listing page that is selected at GD > Permalinks > GeoDirectory Pages > Add Listing page before your custom Add Listing pages will work.
Parameters:

Example: [gd_add_listing listing_type=gd_event login_msg="Please register and login to submit listings" show_login=true]