Title: Date Expiration
Last modified: August 31, 2016

---

# Date Expiration

 *  Resolved [914Digital](https://wordpress.org/support/users/soulstatic/)
 * (@soulstatic)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/date-expiration-1/)
 * Is there a way to remove data from a loop after an expired date? My idea was 
   to write a function like this:
    <?php $checkDate = function($check) { if(isset(
   $check) && $check > ‘F jS, Y’) { return true; } else { return false; } }; ?>
 * [https://wordpress.org/plugins/custom-field-suite/](https://wordpress.org/plugins/custom-field-suite/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Matt Gibbs](https://wordpress.org/support/users/mgibbs189/)
 * (@mgibbs189)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/date-expiration-1/#post-7146464)
 * Not without custom code, the CFS API, and likely wp_cron.
 * Sorry, but we simply don’t have the resources to provide more specific guidance.
   If you need a developer, try something like StackOverflow or [https://codeable.io/](https://codeable.io/)
 * [http://docs.customfieldsuite.com/api.html](http://docs.customfieldsuite.com/api.html)
   
   [https://codex.wordpress.org/Function_Reference/wp_cron](https://codex.wordpress.org/Function_Reference/wp_cron)

Viewing 1 replies (of 1 total)

The topic ‘Date Expiration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-field-suite.svg)
 * [Custom Field Suite](https://wordpress.org/plugins/custom-field-suite/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-suite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Matt Gibbs](https://wordpress.org/support/users/mgibbs189/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/date-expiration-1/#post-7146464)
 * Status: resolved