{"id":823,"date":"2025-03-24T14:27:46","date_gmt":"2025-03-24T14:27:46","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/gd-best-of-listings\/"},"modified":"2025-04-03T15:24:07","modified_gmt":"2025-04-03T14:24:07","slug":"gd-best-of-listings","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-best-of-listings\/","title":{"rendered":"GD > Best of listings"},"content":{"rendered":"<section class=\"alert alert-success dashed\">\n\t 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>.<\/section>\n<p>\n\t The Best of listings widget shows the highest rated listings from each category of a post type. <br \/>\n\t The widget will show one category list at a time with category name tabs that switch between them via AJAX loading.<\/p>\n<h2>Widget Options<\/h2>\n<section class=\"alert alert-info\">\n\t Most settings for this widget are advanced settings, reveal them by clicking the button next to save.<\/section>\n<ul>\n<li> <strong>Title <\/strong>&#8211; The title for the widget. <\/li>\n<li><strong>Default Post Type<\/strong> &#8211; This is the default CPT to use, core only has Places but Extensions can add different ones.<\/li>\n<li><strong>Tabs layout<\/strong> &#8211; This sets if the tabs should show on <strong>top<\/strong>, on the <strong>left<\/strong> or as a <strong>dropdown select<\/strong> on top.&nbsp;<\/li>\n<li><strong>Posts to show<\/strong> &#8211; The maximum number of posts to show.<\/li>\n<li><strong>Categories to show<\/strong> &#8211; The maximum number of categories to show.<\/li>\n<li><strong>Enable location filter<\/strong> &#8211; If enabled this will filter the listings shown to the current location in the URL.<\/li>\n<li><strong>Use current viewing post type<\/strong> &#8211; If selected this will use the current viewing CPT from the URL.<\/li>\n<\/ul>\n<h2>Example Output<\/h2>\n<p>\n\t Tabs on top example<\/p>\n<p>\n\t <img width=\"726\" height=\"470\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-Z2jWpjvBea.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-Z2jWpjvBea.png 726w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-Z2jWpjvBea-300x194.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/p>\n<p>\n\t Tabs on left example<\/p>\n<p>\n\t <img width=\"728\" height=\"461\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-dicmz5GOdS.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-dicmz5GOdS.png 728w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-dicmz5GOdS-300x190.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/p>\n<p>\n\t Tabs as select example:<\/p>\n<p>\n\t <img width=\"724\" height=\"458\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-8TkQuPdyHD.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-8TkQuPdyHD.png 724w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-8TkQuPdyHD-300x190.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our Super Duper Widgets. The Best of listings widget shows the highest rated listings from each category of a post type. The widget will show one category list at a time with category name tabs that switch between them via AJAX loading. Widget Options [&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-823","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\/823","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=823"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/823\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=823"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=823"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}