Вот такая статейка рекомендует вставить в своей теме в functions.php вот такой код:
function is_old_post($post_id=null){
$days = 15;
global $wp_query;
if(is_single() || is_page()) {
if(!$post_id) {
$post_id = $wp_query->post->ID;
}
$current_date = time();
$offset = $days *60*60*24;
$post_id = get_post($post_id);
$post_date = mysql2date(‘U’,$post_id->post_date);
$cunning_math = $post_date + $offset;
$test = $current_date — $cunning_math;
if($test > 0){
$return = true;
}else{
$return = false;
}
}else{
$return = false;
}
return $return;
}
А в скрипте отображения поста показать вот так:
<?php if(is_old_post()){ ?>
вставьте сюда Ваш код AdSense или другой контекст
<?php } ?>
![[info]](http://lj.rossia.org/img/userinfo.gif)