{"id":726,"date":"2025-03-24T14:27:31","date_gmt":"2025-03-24T14:27:31","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/what-makes-geodirectory-widgets-special\/"},"modified":"2025-04-03T15:23:51","modified_gmt":"2025-04-03T14:23:51","slug":"what-makes-geodirectory-widgets-special","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/what-makes-geodirectory-widgets-special\/","title":{"rendered":"What makes GeoDirectory Widgets Special?"},"content":{"rendered":"<h2>The Problem<\/h2>\n<p>\n\tIn WordPress, developers have 3 different ways to output content;<\/p>\n<ul>\n<li><strong>Widgets<\/strong><\/li>\n<li><strong>Shortcodes<\/strong><\/li>\n<li><strong>Blocks<\/strong> (Gutenberg Editor)<\/li>\n<\/ul>\n<p> <strong>The problem is that all 3 are created in different ways<\/strong>.&nbsp; As a result, creating a map &#8220;widget&#8221; that is able to be output by all 3 would require the creation and maintaining of 3 different code bases. This means <strong>3x more time to build, maintain and fix<\/strong> any issues as well as inconsistencies between the settings inputs.<\/p>\n<h2>Our Super Duper Solution<\/h2>\n<p>\n\tBack before the Gutenberg editor was introduced and Blocks were a thing, we (and most devs) already disliked maintaining a shortcode and a widget that did the same thing. Therefore when blocks came into the scene we decided a new solution was needed and in early 2018 we created <strong>WP Super Duper.<\/strong><\/p>\n<h3>WP Super Duper<\/h3>\n<p>\n\tWP Super Duper is a PHP Class that does several important things, the core idea is that you write your code once and it will;<\/p>\n<ul>\n<li><strong>Create a shortcode.<\/strong><\/li>\n<li><strong>Create a widget.<br \/>\n\t<\/strong><\/li>\n<li><strong>Create a Block. <\/strong>(without any JS knowledge required)<\/li>\n<li><strong>Have the exact same settings inputs for all 3.<\/strong><\/li>\n<li><strong>Have the exact same output results no matter what you use, shortcode, widget or block.<\/strong><\/li>\n<li><strong>Adds a visual shortcode builder when using the classic editor.<\/strong><\/li>\n<li><strong>Provide&#8217;s compatibility with almost all page builders.<br \/>\n\t<\/strong><\/li>\n<li><strong>Reduces the amount of PHP code used.<\/strong><\/li>\n<li><strong>Reduces the time needed to add new features.<\/strong><\/li>\n<\/ul>\n<section class=\"alert alert-info\">\n\tWP Super Duper is used in all our projects so users always have a consistent way to output content.<\/section>\n","protected":false},"excerpt":{"rendered":"<p>The Problem In WordPress, developers have 3 different ways to output content; Widgets Shortcodes Blocks (Gutenberg Editor) The problem is that all 3 are created in different ways.&nbsp; As a result, creating a map &#8220;widget&#8221; that is able to be output by all 3 would require the creation and maintaining of 3 different code bases. [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,422],"class_list":["post-726","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\/726","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"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=726"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/726\/revisions"}],"predecessor-version":[{"id":1839,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/726\/revisions\/1839"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=726"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=726"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}