{"id":2658,"date":"2026-10-20T08:35:25","date_gmt":"2026-10-20T07:35:25","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/display-all-tags-on-a-page\/"},"modified":"2026-10-20T08:40:40","modified_gmt":"2026-10-20T07:40:40","slug":"display-all-tags-on-a-page","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/display-all-tags-on-a-page\/","title":{"rendered":"How to display all tags on a page"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Use the GD &gt; Tags block, widget or shortcode. It works like GD &gt; Categories but lists the tags of a GeoDirectory post type, each one linking to its tag page, and you can put it on any page, in a sidebar or in a page builder layout.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To list every tag used by Places in A to Z order, add this to a page:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_tags post_type=&quot;gd_place&quot; max_count=&quot;0&quot; sort_by=&quot;az&quot;&#093;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Options you can change<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>post_type<\/code>: the post type whose tags you want, for example <code>gd_place<\/code> or <code>gd_event<\/code>.<\/li>\n\n\n\n<li><code>max_count<\/code>: how many tags to show per post type. <code>0<\/code> shows them all.<\/li>\n\n\n\n<li><code>sort_by<\/code>: <code>count<\/code> puts the most used tags first, <code>az<\/code> sorts them alphabetically.<\/li>\n\n\n\n<li><code>hide_empty=&quot;1&quot;<\/code> leaves out tags that have no listings.<\/li>\n\n\n\n<li><code>filter_ids<\/code>: a comma separated list of tag IDs to show only those tags, or negative IDs such as <code>-21,-8<\/code> to leave them out.<\/li>\n\n\n\n<li><code>cpt_ajax=&quot;1&quot;<\/code> adds a dropdown so visitors can switch between post types.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In the block editor you can set all of these from the block settings instead of typing them. The <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/shortcode-builder\/\">Shortcode Builder<\/a> also builds the shortcode for you.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tags on a single listing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On a listing&#8217;s own page, GD &gt; Tags shows only that listing&#8217;s tags. Add <code>no_tag_filter=&quot;1&quot;<\/code> if you want the full list there too.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you only want the tags of the listing being viewed, for example on the details page or in your archive item template, use GD &gt; Post Meta instead: <code>&#091;gd_post_meta key=&quot;post_tags&quot;&#093;<\/code>. It needs a current listing, which is why it shows nothing when you add it to an ordinary page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you prefer a tag cloud, see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-use-the-wordpress-tag-cloud-widget-with-geodirectory\/\">How to use the WordPress Tag Cloud widget with GeoDirectory<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use the GD &gt; Tags block, widget or shortcode. It works like GD &gt; Categories but lists the tags of a GeoDirectory post type, each one linking to its tag page, and you can put it on any page, in a sidebar or in a page builder layout. To list every tag used by Places [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,422],"class_list":["post-2658","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-core-widgets"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2658","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=2658"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2658\/revisions"}],"predecessor-version":[{"id":2803,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2658\/revisions\/2803"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2658"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2658"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}