{"id":869,"date":"2025-03-24T14:27:54","date_gmt":"2025-03-24T14:27:54","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-unpublish-events-after-a-given-date\/"},"modified":"2025-04-03T15:24:14","modified_gmt":"2025-04-03T14:24:14","slug":"how-to-unpublish-events-after-a-given-date","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/events\/how-to-unpublish-events-after-a-given-date\/","title":{"rendered":"How to Unpublish Events After a Given Date?"},"content":{"rendered":"<p>As of&nbsp;v2.1.1.6, the Events extension lets you unpublish events after a given date.&nbsp;<\/p>\n<h2>Managing Past Events<\/h2>\n<p>To manage past or expired events, you can head to&nbsp;&nbsp;<strong>CPT &gt; Settings &gt; General &gt; Manage Past Events.&nbsp;<\/strong>This is where you can choose to unpublish or remove events after X days, and then specify the number of days. You can also specify the status for past events, such as Pending Review, Draft, or Trash.&nbsp;<\/p>\n<p><img width=\"836\" height=\"442\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/127009347-54f6c276-c352-40b3-bb80-e16977956c1a.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/127009347-54f6c276-c352-40b3-bb80-e16977956c1a.png 836w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/127009347-54f6c276-c352-40b3-bb80-e16977956c1a-300x159.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/127009347-54f6c276-c352-40b3-bb80-e16977956c1a-768x406.png 768w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><\/p>\n<p>If you wish to manually manage past events on your site, you can go to&nbsp;<strong>GeoDirectory &gt; Status &gt; Tools &gt; Handle Past Events<\/strong> and then run the necessary function to manage past events.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As of&nbsp;v2.1.1.6, the Events extension lets you unpublish events after a given date.&nbsp; Managing Past Events To manage past or expired events, you can head to&nbsp;&nbsp;CPT &gt; Settings &gt; General &gt; Manage Past Events.&nbsp;This is where you can choose to unpublish or remove events after X days, and then specify the number of days. You [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[699,700,701],"article\/categories":[213,402],"class_list":["post-869","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-events","gd_place_tags-expired-events","gd_place_tags-past-events","gd_placecategory-extensions-features","gd_placecategory-events"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/869","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=869"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/869\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=869"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=869"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}