Title: [Plugin: Simple Timed Content] Using function to theme
Last modified: August 20, 2016

---

# [Plugin: Simple Timed Content] Using function to theme

 *  [MAIK72](https://wordpress.org/support/users/maik72/)
 * (@maik72)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-simple-timed-content-using-function-to-theme/)
 * Im using the function to dissapear expired posts:
 * <?php if (function_exists(‘simple_timed_content’)) : ?>
    <?php if (simple_timed_content(“
   offdate=20120309 offtime=230058”)) : ?> **Some content goes here** <?php endif;?
   > <?php endif; ?>
 * I want to use as dates from custom fields like this:
 * `(simple_timed_content("offdate='$end_date' offtime='$end_time'")) : ?>`
 * where : `
    $end_date=date( ‘Ymd’, strtotime( get_post_meta( $Post->ID, “_EventStartDate”,
   true), time()));`
 * $end_time=date( ‘HM’, strtotime( get_post_meta( $Post->ID, “_EventStartDate”,
   true), time()));`
 * Assuming allways that _EventStartDate value is : Ymd HM (20120309 230058)
    How
   would be the complete code for this to work? Im new to php Thank you
 * [http://wordpress.org/extend/plugins/simple-timed-plugin/](http://wordpress.org/extend/plugins/simple-timed-plugin/)

The topic ‘[Plugin: Simple Timed Content] Using function to theme’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-timed-plugin_b5b9ac.svg)
 * [Timed Content](https://wordpress.org/plugins/simple-timed-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-timed-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-timed-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-timed-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-timed-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-timed-plugin/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [MAIK72](https://wordpress.org/support/users/maik72/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-simple-timed-content-using-function-to-theme/)
 * Status: not a support question