{"id":2351,"date":"2026-10-20T08:32:18","date_gmt":"2026-10-20T07:32:18","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/show-venue-events-on-listing-page\/"},"modified":"2026-10-20T08:39:57","modified_gmt":"2026-10-20T07:39:57","slug":"show-venue-events-on-listing-page","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/events\/show-venue-events-on-listing-page\/","title":{"rendered":"How to show a venue&#8217;s events on its listing page"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To list the events held at a place on that place&#8217;s page, link the events to the place and then show the linked events in a tab or block. The old <code>&#091;gd_event_listing&#093;<\/code> shortcode belonged to GeoDirectory v1 and no longer exists.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Link events to places<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Linking post types is part of the Custom Post Types add-on. In the settings of your Events post type, set it to link to Places. Once that&#8217;s saved, the add event form gets a field where the organiser picks the place the event belongs to. <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/custom-post-types-extension\/how-to-link-two-custom-post-types\/\">How to link two custom post types<\/a> has the details, including whether users can link to places they don&#8217;t own.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Show the events on the place page<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/custom-post-types-extension\/gd-linked-posts\/\">GD &gt; Linked Posts<\/a> widget on the place&#8217;s details page, set to show the events that link to the current place. For example:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_linked_posts link_type=&quot;from&quot; post_type=&quot;gd_event&quot; post_limit=&quot;10&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can also use GD &gt; Listings with the post type set to Events and the Linked Posts filter set to the current post. That gives you the extra event options of GD &gt; Listings, such as showing only upcoming events. See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/events\/how-to-use-gd-listings-for-events\/\">How to use GD &gt; Listings for events<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. Put it in an Events tab<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to Places &gt; Settings &gt; Tabs.<\/li>\n\n\n\n<li>Add a Fieldset tab and name it Events.<\/li>\n\n\n\n<li>Paste the shortcode from step 2 into the tab content box and save.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Any shortcode in a tab&#8217;s content box is run when the tab is shown. See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-use-the-tabs-builder-in-geodirectory\/\">How to use the Tabs Builder in GeoDirectory<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To show all events in one event category instead, use GD &gt; Listings with the post type set to Events and the category selected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To list the events held at a place on that place&#8217;s page, link the events to the place and then show the linked events in a tab or block. The old &#091;gd_event_listing&#093; shortcode belonged to GeoDirectory v1 and no longer exists. 1. Link events to places Linking post types is part of the Custom Post [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,402],"class_list":["post-2351","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-events"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=2351"}],"version-history":[{"count":2,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2351\/revisions"}],"predecessor-version":[{"id":2614,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2351\/revisions\/2614"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2351"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2351"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}