{"id":723,"date":"2025-03-24T14:27:30","date_gmt":"2025-03-24T14:27:30","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/shortcode-builder\/"},"modified":"2025-04-03T15:23:51","modified_gmt":"2025-04-03T14:23:51","slug":"shortcode-builder","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/shortcode-builder\/","title":{"rendered":"Shortcode Builder"},"content":{"rendered":"\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\">All GeoDirectory elements can be added with <strong>shortcodes<\/strong>, widgets or blocks.<\/span><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Where to find the Shortcode Builder<\/h2>\n\n\n\n<p>If you have the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/useful-plugins\/classic-editor\/\">Classic Editor plugin<\/a> installed, then you can use the Shortcode Builder to customize your GeoDirectory pages, or any other page or post.&nbsp;You can add <a href=\"\/category\/36-core-widgets\">all the GD elements<\/a> like this.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-DblnXrkmNb.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Features<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Hover over the <strong>Tooltips<\/strong> for an explanation of the options:<br><figure><img loading=\"lazy\" decoding=\"async\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-pPDARedCAj.png 585w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-pPDARedCAj-300x44.png 300w\" width=\"585\" height=\"85\" class=\"attachment-large size-large\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-pPDARedCAj.png\" alt=\"\"><\/figure><\/li>\n\n\n\n<li>Some shortcodes have <strong>Advanced Settings<\/strong>:<br><figure><img loading=\"lazy\" decoding=\"async\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-wA25zA2XB4.png 339w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-wA25zA2XB4-300x141.png 300w\" width=\"339\" height=\"159\" class=\"attachment-large size-large\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-wA25zA2XB4.png\" alt=\"\"><\/figure><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Example<\/h2>\n\n\n\n<p>This video shows how to add the Phone custom field to the Detail page, using the Phone icon and the phone number only. This is how this will look on the Detail page for a listing:<br><br><img loading=\"lazy\" decoding=\"async\" class=\"attachment-large size-large\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-Lbjz781me5.png\" alt=\"\" width=\"175\" height=\"48\"><\/p>\n\n\n\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/efZwSTp8yrM?vq=hd1080&amp;modestbranding=1&amp;rel=0\" width=\"680\" height=\"750\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><br \/><\/iframe><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Display Meta for Logged Out Users?<\/h2>\n\n\n\n<p>By default, Shortcode Builder provides the meta only for logged in users. If you wish to display meta for all users, you can use &#8216;post_author&#8217; in &#8216;user_id&#8217; field of the shortcode &#8216;[uwp_user_meta]&#8217; to get the meta for the current post author. Example:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-none\">&#091;uwp_user_meta key=&quot;display_name&quot; show=&quot;value&quot; user_id=&quot;post_author&quot;&#093;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"tabs\"><strong>Builder in Tabs<\/strong><\/h2>\n\n\n\n<p>Easily find the shortcode builder on your site by visiting the tabs settings. On the tabs find the &#8216;shortcode&#8217; option and click to add it to the tabs on the right. The form options will open and you will be able to find a blue button &#8216;shortcode&#8217;. Click that to open the shortcode builder.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Where to find the Shortcode Builder If you have the Classic Editor plugin installed, then you can use the Shortcode Builder to customize your GeoDirectory pages, or any other page or post.&nbsp;You can add all the GD elements like this. Features Example This video shows how to add the Phone custom field to the Detail [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[548,549,550,551],"article\/categories":[421,213,422],"class_list":["post-723","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-builder","gd_place_tags-top10","gd_place_tags-short","gd_place_tags-build","gd_placecategory-core-features","gd_placecategory-extensions-features","gd_placecategory-core-widgets"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/723","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=723"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/723\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=723"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=723"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}