have_posts() ) : $counter = 0; ?>
have_posts() ) : $the_query->the_post(); ?>
” ;
$day = new DateTime(get_the_date(‘Y-m-d’));
$today = new DateTime(date(“Y-m-d”));
$diff = $day->diff($today);
if ($diff->days<=7){
echo "new “;
}
echo get_the_date(‘Y’) . ‘.’ . get_the_date(‘m’) . ‘.’ . get_post_time(‘j’) ;
echo “ ”;};
?>