Applying a filter to multiple loops for days ago

Define the filter_where function in your functions.php file in your theme.

<?php
function filter_where($where="") { 
    $where .= " AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'"; 
    return $where; 
} 

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)