Bir db bağlantı dosyası oluşturup wordpress veritabanı bilgilerini girersiniz. Aşağıdaki SQL sorgusu ile tüm yazıların tarihini bugünün tarihi olarak güncelleyebilirsiniz. Veya $wpdb 'yi de kullanabilirsiniz.
include("db.php") // Veritabanı Bağlantı Dosyası
$post_date=date("Y-m-d H:i:s");
$update1=$db->prepare("UPDATE wp_posts SET post_date=:post_date WHERE post_status='publish' AND post_type='post'");
$update=$update1->execute(array("post_date"=>"$post_date"));