hi there,
I've added an expiry date to posts using the code below - I'd like to show this date under the permalink much like the meta info. How would I go about doing this using the code:
<?php get_post_custom_values($key, $post_id); ?>
Post expiry function:
<?php
if (have_posts()) :
while (have_posts()) : the_post(); ?>
$expirationtime = get_post_custom_values('expiration');
if (is_array($expirationtime)) {
$expirestring = implode($expirationtime);
}
$secondsbetween = strtotime($expirestring)-time();
if ( $secondsbetween > 0 ) {
// For exemple...
the_title();
the_excerpt();
}
endwhile;
endif;
?>
Thanks in advance!