{"id":2394,"date":"2026-10-20T08:32:20","date_gmt":"2026-10-20T07:32:20","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/listing-expiry-date\/"},"modified":"2026-10-20T08:41:00","modified_gmt":"2026-10-20T07:41:00","slug":"listing-expiry-date","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/pricing-manager-extension\/listing-expiry-date\/","title":{"rendered":"How to make listings expire after 30 days and show the expiry date"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Listing expiry comes from the Pricing Manager add-on. Each price package has a lifetime, and every listing on that package gets an expiry date from it. Users cannot choose or change the date in the add listing form.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Set the package lifetime<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to Places &gt; Settings &gt; Packages.<\/li>\n\n\n\n<li>Edit the package, or add a new one.<\/li>\n\n\n\n<li>Set Package Lifetime to 30 and choose Day(s) as the unit. Leave it blank or 0 if listings on this package should never expire.<\/li>\n\n\n\n<li>Save the package.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">When a listing passes its expiry date it is marked as expired. <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/explore-settings\/understanding-expired-and-closed-listings\/\">Understanding &#8220;Expired&#8221; and &#8220;Closed&#8221; listings<\/a> explains what visitors and owners see then. The Pricing Manager can also email the owner before the listing expires, so they have a chance to renew.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Show the expiry date on the listing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The date is stored in a field called <code>expire_date<\/code>. To show it, add a GD &gt; Post Meta block to the GD Details template page with the key set to <code>expire_date<\/code>, or use the shortcode:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_post_meta key=&quot;expire_date&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It shows the date along with the number of days left. It is an admin only field: users do not see it in the add listing form, but you can change it when editing a listing in wp-admin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the rest of the package settings, see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/pricing-manager-extension\/pricing-manager-setup-guide\/\">Pricing Manager setup guide<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Listing expiry comes from the Pricing Manager add-on. Each price package has a lifetime, and every listing on that package gets an expiry date from it. Users cannot choose or change the date in the add listing form. Set the package lifetime When a listing passes its expiry date it is marked as expired. Understanding [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,426],"class_list":["post-2394","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-pricing-manager-extension"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2394","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=2394"}],"version-history":[{"count":2,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2394\/revisions"}],"predecessor-version":[{"id":2698,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2394\/revisions\/2698"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2394"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2394"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}