samcy (June 17th, 2012), tradeamillion (September 28th, 2013)
<?php
$cp_meta_expiry = get_post_meta($post->ID, 'cp_sys_ad_duration', true);
$queried_post_type = get_query_var('post_type');
if ( is_single() && 'ad_listing' == $queried_post_type )
{
$gmt_timestamp = get_post_time('U', true) + ($cp_meta_expiry * 24 * 60 * 60);
$cp_expiry_time = $gmt_timestamp; ?>
<meta http-equiv="expires" content="<?php echo date("D, d M Y H:i:s", $cp_expiry_time); ?> GMT" />
<?php
}
?>
and save.
samcy (June 17th, 2012), tradeamillion (September 28th, 2013)
There are currently 1 users browsing this thread. (0 members and 1 guests)