{"id":758,"date":"2025-03-24T14:27:36","date_gmt":"2025-03-24T14:27:36","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/gd-post-address\/"},"modified":"2025-04-03T15:23:57","modified_gmt":"2025-04-03T14:23:57","slug":"gd-post-address","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-post-address\/","title":{"rendered":"GD > Post Address"},"content":{"rendered":"\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-success mb-3\" role=\"alert\"><span class=\"fas fa-check-circle me-2\"><\/span><span class=\"flex-grow-1\">All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/what-makes-geodirectory-widgets-special\/\">Super Duper Widgets<\/a>.<\/span><\/div>\n\n\n\n<p>The <strong><em>Post Address<\/em><\/strong>&nbsp;widget gives you granular control over outputting the listing address.<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-info mb-3\" role=\"alert\"><span class=\"fas fa-info-circle me-2\"><\/span><span class=\"flex-grow-1\">The <strong>GD > Post Meta widget can output the full address<\/strong>, the <strong>GD > Post Address<\/strong> widget is generally needed when a partial or custom format address is required.<\/span><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Widget Options<\/h2>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-info mb-3\" role=\"alert\"><span class=\"fas fa-info-circle me-2\"><\/span><span class=\"flex-grow-1\">Some settings for this widget are advanced settings, reveal them by clicking the button next to save.<\/span><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Title<\/strong> &#8211; The widget title.<\/li>\n\n\n\n<li><strong>Post ID<\/strong> &#8211; Enter a specific post ID or leave blank to use the current post ID.<\/li>\n\n\n\n<li><strong>Show<\/strong> &#8211; What to show in the output, options are;\n<ul class=\"wp-block-list\">\n<li>icon + label + value<\/li>\n\n\n\n<li>icon + value<\/li>\n\n\n\n<li>label + value<\/li>\n\n\n\n<li>label<\/li>\n\n\n\n<li>value<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Address template<\/strong> &#8211; Here you can specify a custom address output template.\n<ul class=\"wp-block-list\">\n<li><em>Enter the address tags as required, adding _c (comma) _br (line break) or _brc (comma with break)\u00a0 to the tag adds a line break or comma and line break after it.\u00a0<\/em><\/li>\n\n\n\n<li><em>Available tags: %%street%%\u00a0<em>%%street2%%<\/em> %%neighbourhood%% %%city%% %%region%% %%country%% %%zip%% %%latitude%% %%longitude%% %%post_title%% %%br%% )<\/em><\/li>\n\n\n\n<li><em>Address template is an option in the widget that looks like this<figure><img loading=\"lazy\" decoding=\"async\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-68xQJyJEWl-1024x149.png 1024w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-68xQJyJEWl-300x44.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-68xQJyJEWl-768x112.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-68xQJyJEWl.png 1527w\" width=\"920\" height=\"134\" class=\"attachment-large size-large\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-68xQJyJEWl-1024x149.png\" alt=\"\"><\/figure><\/em><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Alignment <\/strong>&#8211;\u00a0How the item should be positioned on the page.<\/li>\n\n\n\n<li><strong>Text Align<\/strong> &#8211;\u00a0How the text should be aligned.<\/li>\n\n\n\n<li><strong>Hide item on view<\/strong> &#8211; This option can hide the whole output when viewed in a post loop grid view on under.<\/li>\n\n\n\n<li><strong>Hide secondary info on view<\/strong> &#8211;\u00a0You can set at what view the secondary info such as label will become hidden when this is used in the post loop archive item template.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Example Output<\/h2>\n\n\n\n<p>Default output:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-For07vqca2.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>If you are creating a local directory you might not want to output so much info, in this case, we could only show the icon and value and change the <strong>Address template<\/strong> to&nbsp;<em style=\"background-color: initial;\">%%street_brc%% %%city<\/em><em style=\"background-color: initial;\">%%&nbsp;%%zip%%<br><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-JGNggBoC9D.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><em style=\"background-color: initial;\"><br><strong>Additional Display Modifiers<\/strong><\/em><\/p>\n\n\n\n<p><em>For address parts you can also add modifiers like %%region_c%%,&nbsp;<\/em><em style=\"background-color: initial;\">like %%region_br%%,&nbsp;<\/em><em style=\"background-color: initial;\">like %%region_brc%%<\/em><\/p>\n\n\n\n<p><em style=\"background-color: initial;\">_c        &#8211; if the value is output, add a comma after it.\u00a0<br>_br      &#8211;\u00a0add a line break (new line)<\/em><br><em style=\"background-color: initial;\">_c       &#8211; if the value is output, add a line\u00a0after it.\u00a0\u00a0<\/em><br><em style=\"background-color: initial;\">_brc    &#8211; if the value is output, add a line break and comma after it.\u00a0<\/em><\/p>\n\n\n\n<p><em style=\"background-color: initial;\">&nbsp;<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Post Address&nbsp;widget gives you granular control over outputting the listing address. Widget Options Example Output Default output: If you are creating a local directory you might not want to output so much info, in this case, we could only show the icon and value and change the Address template to&nbsp;%%street_brc%% %%city%%&nbsp;%%zip%% Additional Display Modifiers [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,422],"class_list":["post-758","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\/758","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=758"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/758\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=758"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=758"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}