{"id":2493,"date":"2015-02-17T20:47:13","date_gmt":"2015-02-17T20:47:13","guid":{"rendered":"https:\/\/docs.wpgeodirectory.com\/?p=2493"},"modified":"2018-08-25T01:26:17","modified_gmt":"2018-08-25T01:26:17","slug":"core-shortcodes","status":"publish","type":"post","link":"https:\/\/wpgeodirectory.com\/docs\/core-shortcodes\/","title":{"rendered":"Core Shortcodes"},"content":{"rendered":"<h4>On this page<\/h4>\n<p><a class=\"cnt2\" href=\"#locationmap\">Home Page Map<\/a> <a class=\"cnt2\" href=\"#ctp-cats\">Custom Post Type Categories<\/a>\u00a0<a class=\"cnt2\" href=\"#listing\">Listings Page Map<\/a> <a class=\"cnt2\" href=\"#slider\">Listing Slider<\/a>\u00a0<a class=\"cnt2\" href=\"#login\">Login Box<\/a> <a class=\"cnt2\" href=\"#popcats\">Popular Post Category<\/a> <a class=\"cnt2\" href=\"#poppost\">Popular Post View<\/a> <a class=\"cnt2\" href=\"#review\">Recent Reviews<\/a>\u00a0<a class=\"cnt2\" href=\"#related\">Related Listings<\/a> <a class=\"cnt2\" href=\"#search\">Search<\/a> <a class=\"cnt2\" href=\"#listings\">GD Listings<\/a> <a class=\"cnt2\" href=\"#best-of\">GD Best Of<\/a> <a class=\"cnt2\" href=\"#add-listing\">Add Listing Form<\/a><\/p>\n<h3><a id=\"locationmap\"><\/a>Home Page Map<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_homepage_map]<\/span><\/h4>\n<p>This shortcode is the equivalent of the <em><strong>GD &gt; GMap &#8211; Home Page<\/strong><\/em>\u00a0widget.<\/p>\n<h5>Parameters:<\/h5>\n<ul>\n<li><strong>width<\/strong> &#8211; A number of pixels or percent (default = 960px)<\/li>\n<li><strong>height<\/strong> &#8211; A number of pixels (default = 425px)<\/li>\n<li><strong>maptype<\/strong> &#8211; One of HYBRID, SATELLITE or ROADMAP (default = ROADMAP) &#8211; not case sensitive<\/li>\n<li><strong>zoom<\/strong> &#8211; A number between 1 (narrowest) or 19 (widest) (default = 13)<\/li>\n<li><strong>autozoom<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>child_collapse<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>scrollwheel<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>marker_cluster<\/strong> &#8211; 1 or on &#8211; 0 or off, (default = 0)<\/li>\n<\/ul>\n<p>Example: <code>[gd_homepage_map width=100% height=300 scrollwheel=false]<\/code><\/p>\n<h3><a id=\"ctp-cats\"><\/a>Custom Post Type Categories<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_cpt_categories]<\/span><\/h4>\n<p>This shortcode is the equivalent of the <a href=\"https:\/\/wpgeodirectory.com\/docs\/widgets\/#cpt-cats\"><em><strong>GD &gt; CPT\u00a0&#8211; Categories<\/strong><\/em><\/a>\u00a0widget.<\/p>\n<h5>Parameters:<\/h5>\n<ul>\n<li><strong>title<\/strong> \u2013 the title for the cpt categories<\/li>\n<li><strong>post_type<\/strong> \u2013 The custom post types to use (default = shows all) (examples: \u2018gd_place\u2019 or \u2018gd_place,gd_event\u2019)<\/li>\n<li><strong>hide_empty<\/strong> \u2013 Hide empty categories? True or False (default = false)<\/li>\n<li><strong>show_count<\/strong> \u2013 Show category count? True or False (default = false)<\/li>\n<li><strong>hide_icon<\/strong> \u2013 Hide category icon? True or False (default = false)<\/li>\n<li><strong>cpt_left<\/strong> \u2013 Show CPT on same line? True or False (default = false)<\/li>\n<li><strong>sort_by<\/strong> \u2013 Categories sort by. \u2018az\u2019 or \u2018count\u2019 (default = count)<\/li>\n<li><strong>max_count<\/strong> \u2013 Maximum number of sub-categories count. (default = shows all)<\/li>\n<li><strong>max_level<\/strong> \u2013 Maximum level of sub-categories depth. (default = 1)<\/li>\n<\/ul>\n<p>Example: <code>[gd_cpt_categories show_count=1]<\/code><\/p>\n<h3><a id=\"listing\"><\/a>Listings Page Map<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_listing_map]<\/span><\/h4>\n<p>This shortcode is the equivalent of the <em><strong>GD &gt; GMap &#8211; Listing Page<\/strong><\/em> widget.<\/p>\n<h5>Parameters:<\/h5>\n<ul>\n<li><strong>width<\/strong> &#8211; A number of pixels or percent (default = 294px)<\/li>\n<li><strong>height<\/strong> &#8211; A number of pixels or percent (default = 370px)<\/li>\n<li><strong>zoom<\/strong> &#8211; A number between 1 (narrowest) or 19 (widest) (default = 13)<\/li>\n<li><strong>autozoom<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>sticky<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>scrollwheel<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>marker_cluster<\/strong> &#8211; 1 or on &#8211; 0 or off, (default = 0)<\/li>\n<li><strong>maptype<\/strong> &#8211; One of HYBRID, SATELLITE or ROADMAP (default = ROADMAP) &#8211; not case sensitive<\/li>\n<li><strong>post_type<\/strong> &#8211;\u00a0The slug for the post_type (default = gd_place)<\/li>\n<li><strong>event_type<\/strong> &#8211;\u00a0The events filter (for gd_event CPT only) (default = all)<br \/>\nOptions: all, today, upcoming, past<\/li>\n<li><strong>category<\/strong> \u2013 ID number of the category to show &#8211; if more than one, separate by comma (default = 0 for all)<\/li>\n<\/ul>\n<p>Example: <code>[gd_listing_map width=100% height=300 scrollwheel=false category=\"2,3,4\"]<\/code><\/p>\n<h3><a id=\"slider\"><\/a>Listing Slider<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_listing_slider]<\/span><\/h4>\n<p>This shortcode is the equivalent of the <em><strong>GD &gt; Listing Slider<\/strong><\/em> widget.<\/p>\n<h5>Parameters:<\/h5>\n<ul>\n<li><strong>post_type<\/strong> &#8211; The slug for the post_type (default = gd_place)<\/li>\n<li><strong>category<\/strong> &#8211; ID number of the category to show (default = 0 for all)<\/li>\n<li><strong>post_number<\/strong> &#8211; Number of posts to show (default = 5)<\/li>\n<li><strong>slideshow<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>animation_loop<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>direction_nav<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>slideshow_speed<\/strong> &#8211; A positive number of milliseconds (default = 5000)<\/li>\n<li><strong>animation_speed<\/strong> &#8211; A positive number of milliseconds (default = 600)<\/li>\n<li><strong>animation<\/strong> &#8211; Either slide or fade (default = slide)<\/li>\n<li><strong>order_by<\/strong> &#8211; Options available: az, latest, featured, high_review, high_rating, random (default = latest)<\/li>\n<li><strong>show_title<\/strong> &#8211; True or False (default = false)(this is the post title over image)<\/li>\n<li><strong>show_featured_only<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>title<\/strong> \u2013 the title for the title of the slider<\/li>\n<\/ul>\n<p>Example: <code>[gd_listing_slider post_number=5 category=3 slideshow=true show_featured_only=true]<\/code><\/p>\n<h3><a id=\"login\"><\/a>Login Box<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_login_box]<\/span><\/h4>\n<p>This shortcode is the equivalent of the <em><strong>GD &gt; Login box<\/strong><\/em> widget.<\/p>\n<h5>No parameters<\/h5>\n<p>Example: <code>[gd_login_box]<\/code><\/p>\n<h3><a id=\"popcats\"><\/a>Popular Post Category<\/h3>\n<p>Shortcode: <span style=\"color: #ff0000;\">[gd_popular_post_category]<\/span><\/p>\n<p>This shortcode is the equivalent of the <em><strong>GD &gt; Popular Post Category<\/strong><\/em>\u00a0widget.<\/p>\n<h5>Parameters:<\/h5>\n<ul>\n<li><strong>category_limit<\/strong> &#8211; Number of categories to show (default = 15)<\/li>\n<li><strong>title<\/strong> \u2013 (default = &#8216;Popular Categories&#8217;)<\/li>\n<li><strong>parent_only<\/strong> \u2013 true or false (default = &#8216;true&#8217;)<\/li>\n<\/ul>\n<p>Example: <code>[gd_popular_post_category category_limit=10 parent_only=true]<\/code><\/p>\n<h3><a id=\"poppost\"><\/a>Popular Post View<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_popular_post_view]<\/span><\/h4>\n<p>This shortcode is the equivalent of the <a href=\"https:\/\/wpgeodirectory.com\/docs\/widgets\/#popular-post\"><em><strong>GD &gt; Popular Post View<\/strong><\/em><\/a> widget.<\/p>\n<h5>Parameters:<\/h5>\n<ul>\n<li><strong>post_type<\/strong> &#8211; The slug for the post_type (default = gd_place)<\/li>\n<li><strong>category<\/strong> &#8211; Category IDs to filter listings. Example: &#8217;12&#8217; or &#8216;12,33&#8217;. (default = 0 for all)<\/li>\n<li><strong>post_number<\/strong> &#8211; Number of posts to show (default = 5)<\/li>\n<li><strong>layout<\/strong> &#8211; Number of columns to show (default = 2)<\/li>\n<li><strong>add_location_filter<\/strong> &#8211; Filter listings by current location. (true or false, default = false<\/li>\n<li><strong>list_sort<\/strong> &#8211; Options available: az, latest, featured, high_review, high_rating, random (default = latest)<\/li>\n<li><strong>use_viewing_post_type<\/strong> &#8211; Filter listings by current viewing post type. (true or false, default = true)<\/li>\n<li><strong>character_count<\/strong> &#8211; Number of characters to show from the Excerpt (Min\/default = 20)<\/li>\n<li><strong>listing_width<\/strong> &#8211; A percent between 20 and 100 (default = \u2018\u2019)<\/li>\n<li><strong>show_featured_only<\/strong> &#8211; Display only featured listings. (true or false, default = false)<\/li>\n<li><strong>show_special_only<\/strong> &#8211; Display only listings with Special\u00a0Offers. (true or false, default = false)<\/li>\n<li><strong>with_pics_only<\/strong> &#8211; Only display listings which have an image available. (true or false, default = false)<\/li>\n<li><strong>with_videos_only<\/strong> &#8211; Only display listings which have video available. (true or false, default = false)<\/li>\n<li><strong>title<\/strong> \u2013 (default = &#8216;the name of the custom post type&#8217;)<\/li>\n<li><strong>hide_if_empty<\/strong> \u2013 Hide widget if no listings found. (true or false, default = false)<\/li>\n<\/ul>\n<p>Example:<\/p>\n<p><code>[gd_popular_post_view category=3 layout=5 add_location_filter=true character_count=0 show_featured_only=true]<\/code><\/p>\n<h3><a id=\"review\"><\/a>Recent Reviews<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_recent_reviews]<\/span><\/h4>\n<p>This shortcode is the equivalent of the <a href=\"https:\/\/wpgeodirectory.com\/docs\/widgets\/#recent-reviews\"><em><strong>GD &gt; Recent Reviews<\/strong><\/em><\/a>\u00a0widget.<\/p>\n<h5>Parameters:<\/h5>\n<ul>\n<li><strong>count<\/strong> &#8211; Number of posts to show (default = 5)<\/li>\n<\/ul>\n<p>Example:\u00a0<code>[gd_recent_reviews count=5]<\/code><\/p>\n<h3><a id=\"related\"><\/a>Related Listings<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_related_listings]<\/span><\/h4>\n<p>This shortcodes is the equivalent of the <a href=\"https:\/\/wpgeodirectory.com\/docs\/widgets\/#related-listing\"><em><strong>GD &gt; Related Listings<\/strong><\/em><\/a> widget.<\/p>\n<h5>Parameters:<\/h5>\n<ul>\n<li><strong>post_number<\/strong> &#8211; Number of posts to show (default = 5)<\/li>\n<li><strong>relate_to<\/strong> &#8211; Either category or tags (default=category)<\/li>\n<li><strong>layout<\/strong> &#8211; Number of columns to show (default = 2)<\/li>\n<li><strong>add_location_filter<\/strong> &#8211; True or False (default = false)<\/li>\n<li><strong>listing_width<\/strong> &#8211; A percent between 20 and 100 (default = \u2018\u2019)<\/li>\n<li><strong>list_sort<\/strong> &#8211; Options available: az, latest, featured, high_review, high_rating, random (default = latest)<\/li>\n<li><strong>character_count<\/strong> &#8211; Number of characters to show from the Excerpt (Min\/default = 20)<\/li>\n<\/ul>\n<p>Example:\u00a0<code>[gd_related_listings relate_to=tags layout=3 add_location_filter=true list_sort=featured character_count=0]<\/code><\/p>\n<h3><a id=\"search\"><\/a>Search<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_advanced_search]<\/span><\/h4>\n<p>This shortcode is the equivalent of the <a href=\"https:\/\/wpgeodirectory.com\/docs\/widgets\/#search\"><em><strong>GD &gt; Search<\/strong><\/em><\/a>\u00a0widget.<\/p>\n<p>No parameters unless <a href=\"https:\/\/wpgeodirectory.com\/docs\/category\/addons\/search-filters\/\">Advanced Search addon<\/a> is active:<\/p>\n<ul>\n<li>show_adv_search\u00a0&#8211; If the advanced search section should be shown: (&#8216;default&#8217;, &#8216;always&#8217;, &#8216;searched&#8217;)<\/li>\n<li>post_type \u2013 The custom post types to show by default (examples: \u2018gd_place\u2019 or \u2018gd_event\u2019)<\/li>\n<\/ul>\n<p>Example: <code>[gd_advanced_search show_adv_search='always']<\/code><\/p>\n<h3><a id=\"listings\"><\/a>GD Listings<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_listings]<\/span><\/h4>\n<p>This shortcode is almost the equivalent of what you see on the GD category listings pages.<\/p>\n<h5>Parameters:<\/h5>\n<ul>\n<li><strong>title<\/strong>\u00a0&#8211; (default = )<\/li>\n<li><strong><\/strong>\u00a0&#8211; Set the title(default = &#8220;&#8221;)<\/li>\n<li><strong>post_type<\/strong>\u00a0&#8211; The custom post type to use (default=gd_place)<\/li>\n<li><strong>category<\/strong>\u00a0&#8211; The category ids &#8220;1,3&#8221; (default = &#8221;)<\/li>\n<li><strong>list_sort<\/strong> &#8211; Options available: az, latest, featured, high_review, high_rating, random (default = latest)<\/li>\n<li><strong>event_type<\/strong>\u00a0&#8211; Event type filter. Should today, upcoming, past, all. Default empty.(default = &#8220;&#8221;)<\/li>\n<li><strong>post_number<\/strong>\u00a0&#8211; Number of posts to show per page (default = 10)<\/li>\n<li><strong>post_author<\/strong> &#8211; Filter by <em><strong>current_user<\/strong><\/em>, <em><strong>current_author<\/strong><\/em> or <em><strong>ID<\/strong><\/em> (default = unfiltered)\n<ul>\n<li><strong>post_author=\u201dcurrent_user\u201d<\/strong> will filter the listings by author id of the logged in user<\/li>\n<li><strong>post_author=\u201dcurrent_author\u201d<\/strong> will filter the listings by author id of current viewing post\/listing<br \/>\n[<em>Only for Detail pages: this option will show other listings of the same author on the detail page only<\/em>]<br \/>\n[<em>also works on Author pages, but only if you do not use any other plugin that replaces the Author page (for example UsersWP)<\/em>]<\/li>\n<li><strong>post_author=\u201d11\u2033<\/strong> will filter the listings by author id = 11<\/li>\n<li><strong>post_author=&#8221; &#8220;<\/strong> If left empty, all listings will be shown<\/li>\n<\/ul>\n<li><strong>layout<\/strong> &#8211; Number of columns to show (default = 2)<\/li>\n<li><strong>listing_width<\/strong> &#8211; A percent between 20 and 100 (default = \u2018\u2019)<\/li>\n<li><strong>character_count<\/strong> &#8211; Number of characters to show from the Excerpt (Min\/default = 20)<\/li>\n<li><strong>add_location_filter<\/strong> &#8211;\u00a0True or False (default = true)<\/li>\n<li><strong>show_featured_only\u00a0<\/strong>&#8211; options are 1 [true] or 0 [false] (default = 0)<\/li>\n<li><strong>show_special_only\u00a0<\/strong>&#8211; options are 1 [true] or 0 [false] (default = 0)<\/li>\n<li><strong>with_pics_only\u00a0<\/strong>&#8211; Display listings with images &#8211; options are 1 [true] or 0 [false] (default = 0)<\/li>\n<li><strong>with_videos_only\u00a0<\/strong>&#8211; Display listings with videos &#8211; options are 1 [true] or 0 [false] (default = 0)<\/li>\n<li><strong>with_pagination\u00a0<\/strong>&#8211; Display pagination &#8211; options are 1 [true] or 0 [false] (default = 1)<\/li>\n<li><strong>top_pagination\u00a0<\/strong>&#8211; Display pagination on top &#8211; options are 1 [true] or 0 [false] (default = 0)<\/li>\n<li><strong>bottom_pagination\u00a0<\/strong>&#8211; Display pagination on bottom &#8211; options are 1 [true] or 0 [false] (default = 1)<\/li>\n<\/li>\n<li><strong>tags<\/strong> &#8211; Filter by tags\u00a0(default = unfiltered), for example\u00a0<em><strong>tags=&#8221;Museum,Garden&#8221;<\/strong><\/em>. Note that this filter uses the name\/title of the tag, not the slug, and that spaces should be removed. ex. &#8220;Great Place&#8221; becomes &#8220;GreatPlace&#8221;.<\/li>\n<li><strong>show_favorites_only\u00a0<\/strong>&#8211; options are 1 [true] or 0 [false] (default = 0)<\/li>\n<li><strong>favorites_by_user\u00a0<\/strong>&#8211;\u00a0Values should be &#8220;current&#8221;&#8216; or user id [eg 5] or empty (default = empty)<\/li>\n<ul>\n<li>favorites_by_user=&#8221;current&#8221;, shortcode will show the listings which are favorites by author of current viewing post.<\/li>\n<li>favorites_by_user=&#8221;12&#8243;, shortcode will show the listings which are favorites by user id &#8220;12&#8221;.<\/li>\n<li>favorites_by_user=&#8221;&#8221; or empty, shortcode will show the listings which are favorites by current logged user(if logged in).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>Example:<\/h4>\n<p><code>[gd_listings post_type=\"gd_place\" layout=4 category=\"1,3\" post_number=\"4\" list_sort=\"high_review\"]<br \/>\n[gd_listings post_type=\"gd_event\" add_location_filter=\"0\" layout=\"4\" post_number=\"4\" show_favorites_only=\"1\"]<\/code><br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2015\/02\/shortcode1.png\" alt=\"\" width=\"681\" height=\"245\" \/><br \/>\nNote:<br \/>\nWhen displaying a grid of 4 or 5 listings the description will be automatically hidden. To unhide it, use the following custom CSS at GD &#8211; Design &#8211; Scripts &#8211; Custom CSS<br \/>\n[css]<br \/>\n.geodir_category_list_view li.geodir-gridview .geodir-content .geodir-entry-content {<br \/>\n    display: block;<br \/>\n}<br \/>\n[\/css]<\/p>\n<h3><a id=\"best-of\"><\/a>GD Best of<\/h3>\n<p>Shortcode: <code>[gd_bestof_widget]<\/code><\/p>\n<p>Parameters:<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>title &#8211; widget title (default = &#8221;)<\/li>\n<\/ul>\n<ul>\n<li>post_type &#8211; The custom post type to use (default=gd_place)<\/li>\n<\/ul>\n<ul>\n<li>post_limit &#8211; Number of posts to show (default = 5)<\/li>\n<\/ul>\n<ul>\n<li>categ_limit &#8211; The number of category to show (default = 3)<\/li>\n<\/ul>\n<ul>\n<li>character_count &#8211; Number of characters to show from the Excerpt (Min\/default = 20)<\/li>\n<\/ul>\n<ul>\n<li>use_viewing_post_type &#8211; overridess parameter post_type if visiting another custom port type archive (default = false)<\/li>\n<\/ul>\n<ul>\n<li>add_location_filter &#8211; True or False (default = false)<\/li>\n<\/ul>\n<ul>\n<li>tab_layout &#8211; bestof-tabs-on-top or bestof-tabs-on-left or bestof-tabs-as-dropdown (default = bestof-tabs-on-top)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Example:<\/p>\n<p><code> [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]<\/code><\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"add-listing\"><\/a>Add Listing Form<\/h3>\n<h4>Shortcode: <span style=\"color: #ff0000;\">[gd_add_listing]<\/span><\/h4>\n<ol>\n<li>This shortcode allows you to create your own <em><strong><a href=\"https:\/\/wpgeodirectory.com\/docs\/layout\/#add\">Add Listing<\/a>\u00a0<\/strong><\/em>page(s).<\/li>\n<li>By default GD uses the same <em><strong>Add Listing<\/strong><\/em> page to generate different forms for all different <em><strong><a href=\"https:\/\/wpgeodirectory.com\/docs\/category\/addons\/custom-post-types\/\">Custom Post Types<\/a><\/strong><\/em> and\/or <em><strong><a href=\"https:\/\/wpgeodirectory.com\/docs\/category\/addons\/prices-and-payments\/\">price packages<\/a><\/strong><\/em>. \u00a0For example:\n<ol>\n<li>https:\/\/yoursite.com\/add-listing\/?listing_type=gd_place&amp;package_id=1<\/li>\n<li>https:\/\/yoursite.com\/add-listing\/?listing_type=gd_event&amp;package_id=6<\/li>\n<\/ol>\n<\/li>\n<li><i class=\"fa fa-exclamation-triangle fa-2x\" style=\"color: red;\"><\/i> Do <span style=\"color: #ff0000;\"><em><strong>not<\/strong><\/em><\/span> add this shortcode to the Add Listing page selected at <em><strong>GD &gt; Permalinks &gt; GeoDirectory Pages &gt; Add Listing page<\/strong><\/em>.<br \/>\nThat page is reserved for GD generated pages, so only add this shortcode to any extra WP pages.<\/li>\n<li><i class=\"fa fa-exclamation-triangle fa-2x\" style=\"color: orange;\"><\/i> 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\u00a0<em><strong>GD &gt; Permalinks &gt; GeoDirectory Pages &gt; Add Listing page<\/strong><\/em> before your\u00a0custom Add Listing pages will work.<\/li>\n<\/ol>\n<h5>Parameters:<\/h5>\n<ul>\n<li><strong>listing_type<\/strong> &#8211; The custom post type to use (default=gd_place)<\/li>\n<li><strong>login_msg<\/strong> &#8211; The message to show to logged out users (default = You must login to post.)<\/li>\n<li><strong>show_login<\/strong> &#8211; show the login widget to logged out users (default = false)<\/li>\n<\/ul>\n<p>Example:<code> [gd_add_listing listing_type=gd_event login_msg=\"Please register and login to submit listings\" show_login=true]<\/code><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On this page you will find shortcodes to replace most GD widgets etc.<\/p>\n","protected":false},"author":1672,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/2493"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/users\/1672"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/comments?post=2493"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/2493\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/media?parent=2493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/categories?post=2493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/tags?post=2493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}