{"id":17185305,"date":"2023-11-08T16:52:55","date_gmt":"2023-11-08T16:52:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/use-custom-field-to-expire-posts\/"},"modified":"2023-11-08T16:52:55","modified_gmt":"2023-11-08T16:52:55","slug":"use-custom-field-to-expire-posts","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/use-custom-field-to-expire-posts\/","title":{"rendered":"Use custom field to expire posts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi, thanks for a very useful plugin. I have a question about available options. Is it somehow possible to use a custom field value to set the expiry date for posts?  <br \/>To give you a specific example, I am using Pods Framework on a website. One of the CPTs is an events tracker and the event posts should be downgraded to draft and &#8220;disappear&#8221; from the front end after they have taken place. <br \/>I believe this is one of the most basic use cases for the plugin but right now I have to set the expiry dates manually (the default e.g. +1 month helps but still requires manual updating).<br \/>In essence, it would be super useful to be able to have a &#8220;dynamic content&#8221; option for the expiry date esp. that Future already recognises my CPTs.<br \/>Assuming that what I am asking about is sufficiently clear, is it possible?<br \/>Many thanks<\/p>\n","protected":false},"template":"","class_list":["post-17185305","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17185305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17185305\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17185305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}