Sizin kodunuzun başına benim yazdığım kodu ekleyin. Yani son hali şöyle olacak:
function filter_where_2($where = '') {
$where .= " AND post_date > '" . date('Y-m-d', strtotime('-15 days')) . "'";
return $where;
}
add_filter( 'posts_where', 'filter_where_2' );
$args = array( 'post_type' => 'listing', 'posts_per_page' => 99999, 'tax_query' => array(
array(
'taxonomy' => $taxonomy,
'field' => 'id',
'terms' => $term_id
)
));
$listing_marker_loop = new WP_Query( $args );
while ( $listing_marker_loop->have_posts() ) : $listing_marker_loop->the_post();
Hocam bu şekilde kopyala yapıştır mı yapacağım o kod zaten başta