http://wordpress.org/extend/plugins/simple-timed-plugin/
Im using this function to dissapear(not delete) expired posts:
<?php if (function_exists('simple_timed_content')) : ?>
<?php if (simple_timed_content("offdate=20120309 offtime=2350")) : ?>
Some content goes here
<?php endif; ?> <?php endif; ?>
I want to use as dates from custom fields like this:
<?php if (simple_timed_content("offdate='$end_date' offtime='$end_time'")) : ?>
where : `
$end_date=date( 'Ymd', strtotime( get_post_meta( $Post->ID, "_EventEndDate", true), time()));`
and
$end_time=date( 'HM', strtotime( get_post_meta( $Post->ID, "_EventEndDate", true), time()));`
Assuming allways that _EventEndDate value is : Ymd HM (20120309 2350) How would be the complete code for this to work?
My other option is to use this code i found :
www.rockia.com/2010/01/modify-you-wordpress-theme-to-enable-an-expiration-for-your-posting
but it doesnt seem to work with my
www.wordpress.org/extend/themes/bombax
where loop is in single.php file
If someone could help I would appreciate it. Im new to php. Thank you in advance