{"id":876,"date":"2025-03-24T14:27:55","date_gmt":"2025-03-24T14:27:55","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/gd-recently-viewed\/"},"modified":"2025-04-03T15:24:15","modified_gmt":"2025-04-03T14:24:15","slug":"gd-recently-viewed","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-recently-viewed\/","title":{"rendered":"GD > Recently Viewed"},"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>The <strong><em>Recently Viewed&nbsp;<\/em><\/strong>widget shows a user their most recently viewed listings.&nbsp;&nbsp;<\/p>\n<ul>\n<li>Listing IDs are stored in browser cache so no GDPR guidance is required.&nbsp;<\/li>\n<li>Listings are loaded via AJAX so they are compatible with all caching systems and are always fresh.<\/li>\n<\/ul>\n<h2>Widget Options<\/h2>\n<section class=\"alert alert-info\">\n\t Some 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 widget title.\n\t<\/li>\n<li> <strong>Posts to show<\/strong> &#8211; The number of posts to show by default (max 50).<\/li>\n<li><strong>Layout&nbsp;<\/strong>&#8211; This will set the default layout for the listings. You can have Grid view 1,2,3,4,5 or list view.<\/li>\n<li><strong>Post Type<\/strong> &#8211;&nbsp;The custom post types to show. Only used when there are multiple CPTs.<\/li>\n<li><strong>Enqueue Slider Script<\/strong> &#8211;&nbsp;This is only needed if your archive items are using an image slider.<\/li>\n<\/ul>\n<h2>Example Output<\/h2>\n<p><img width=\"295\" height=\"439\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-SelUah3hjh.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-SelUah3hjh.png 295w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-SelUah3hjh-202x300.png 202w\" sizes=\"auto, (max-width: 295px) 100vw, 295px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our Super Duper Widgets. The Recently Viewed&nbsp;widget shows a user their most recently viewed listings.&nbsp;&nbsp; Listing IDs are stored in browser cache so no GDPR guidance is required.&nbsp; Listings are loaded via AJAX so they are compatible with all caching systems and are always [&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-876","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\/876","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=876"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/876\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=876"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=876"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}