//feed
function mrcode_delay_publish_on_feed($where) {
global $wpdb;
if ( is_feed() ) {
header( 'X-Robots-Tag: noindex, follow', true );
$now = gmdate('Y-m-d H:i:s');
// value for wait; + device
$wait = '24'; // integer
$device = 'HOUR'; //MINUTE, HOUR, DAY, WEEK, MONTH, YEAR
$where .= " AND TIMESTAMPDIFF($device, $wpdb->posts.post_date_gmt, '$now') > $wait ";
}
return $where;
}
add_filter('posts_where', 'mrcode_delay_publish_on_feed');
این کد رو برا تاخیر انداختن رو فید داشتم، اینم header( 'X-Robots-Tag: noindex, follow', true ); اضافه کردم و الان نوایندکس شد